Player::spawn

From RAGE Multiplayer Wiki

This function spawn a player.

Syntax

player.spawn(Vector3 position)

Example

This example spawns the player after connect.

mp.events.add('playerJoin', player => {
  player.model = mp.joaat('player_zero');
  player.spawn(new mp.Vector3(-425.517, 1123.620, 325.8544));
});

See Also