[Help] Spawning the player in C#


#1

Hello All!
I am quite new to FiveM and have been trying to spawn a player. I found this post: Crash on C# Native RequestModel, and LocalPlayer.ChangeModel
The code example is really good however I have no idea what PlayerSpawned?.Invoke(); could be in reference to, it is also the only line Intellisense has an issue with. Commenting this line out still spawns the player but the player is invisible.
Thanks for any help.


#2

just change the model to one that doesn’t use clothing, or use a few natives to change the ped’s clothing