IsPlayerInvisible
Whether a player is invisible to other players.
Syntax
Section titled “Syntax”IsPlayerInvisible(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - true while SetPlayerInvisible hides them; false when not connected. One viewer’s own rule may differ: IsPlayerVisibleTo
Example
Section titled “Example”if IsPlayerInvisible(pid) then SendClientMessage(pid, COLOR_GOLD, "Nobody sees you.") endSee also
Section titled “See also”SetPlayerInvisible · IsPlayerVisibleTo · the Players group of the index
