Trying to spawn a streamed add-on ped I put together with a keyboard hotkey, but whenever the hotkey is hit, it spawns the model completely invisible, as in none of the assets are applied to it(clothing skins etc) Like it spawned the base skeleton rigging of the model but none of the pieces.
It can be fixed using a trainer(by setting to default wardrobe) but it's inconvenient to have to do, and players new to modding have issues.
I feel like this is an easy fix, what's missing? or is the problem just the ped model I'm using and not the scripting?
using GTA;
using System;
using System.Windows.Forms;
public class ChangePlrModel : Script
{
Keys changeModelKey = Keys.V;
Model modelToChangeTo = "PEDMODELNAMEHERE";
public ChangePlrModel()
{
KeyDown += ChangePlrModel_KeyDown;
}
private void ChangePlrModel_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == changeModelKey)
{
Game.Player.ChangeModel(modelToChangeTo);
}
}
}
It's for this mod: https://www.gta5-mods.com/scripts/jesus-christ-mod