Skip to content

function spawnPlayer (server-side)

Available since version: 0.3.0

Note

If the player is not spawned, server doesn't recognize his presence at all.

This function will spawn the player, optionally overriding the spawn position.

Declaration

void spawnPlayer(number player_id, {x, y, z} Optional)

Parameters

  • number player_id: Player id to spawn.
  • {x, y, z} Optional: position table or three numeric coords.