Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/21/18 in all areas

  1. I don't know of a way to stop the character from spawning (Maybe someone else does and can post a different solution) but the way I would do this is Stop default spawning by using this line of code (server.cs) NAPI.Server.SetAutoSpawnOnConnect(false); Then you need to listen for a player connecting so that we can make the player invisible and invincible (To prevent a death you might not expect) (server.cs) [ServerEvent(Event.PlayerConnected)] public void OnPlayerConnected(Client player) { NAPI.Entity.SetEntityTransparency(player, 0); NAPI.Entity.SetEntityInvincible(player, true); } Then you can freeze the player on the client with the following line (client.js) mp.players.local.freezePosition(true); This isn't required but recommend, you can change where these players will spawn in with the following line, that way you can place them a bit out of the way even though no one will see them and they can't die, also if you do this you will need to enable auto spawning again unless you plan on moving the players yourself (server.cs) NAPI.Server.SetDefaultSpawnLocation(new Vector3(x,y,z), 0); Keep in mind x,y,z is the position that you want them to be at so just go in game pick the spot you like get the cords and plug them in. That should be it hopefully this helps!
    1 point
  2. https://wiki.rage.mp/index.php?title=Player::call
    1 point
×
×
  • Create New...