IsPlayerConnected
Whether a pid belongs to a connected player.
true from the handshake to the disconnect - the player may still be loading the level. For “standing in the world” use
IsPlayerInWorld.
Syntax
Section titled “Syntax”IsPlayerConnected(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsPlayerConnected(target) then SetPlayerPos(target, x, y, z) endSee also
Section titled “See also”IsPlayerInWorld · GetPlayers · the Players group of the index
