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.

Spawn a player, optionally overriding the spawn position.

Declaration

bool spawnPlayer(int player_id, {x, y, z} Optional)

Parameters

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

Returns bool

True on success.