bool isPlayerSpawned(player player)
Parameters
| Name | Type | Description |
|---|---|---|
| player | player | The player. |
Returns
true if the player is spawned, false otherwise or if the element is not a player.
Example
addCommandHandler("spawn", function(player)
if not isPlayerSpawned(player) then
spawnPlayer(player, 2495.1, -1687.4, 13.5)
end
end)