Player::spawn

From RAGE Multiplayer Wiki
Revision as of 17:04, 17 May 2019 by RoboN1X (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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