Skip to content

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.

IsPlayerConnected(pid)
Parameter Type
pid number the player

boolean

if IsPlayerConnected(target) then SetPlayerPos(target, x, y, z) end

IsPlayerInWorld · GetPlayers · the Players group of the index