IsPlayerVisorDown
Whether a player’s helmet visor is down.
As their game last reported it - the game’s own key that closes and opens a helmet’s visor. OnPlayerVisorChange
follows every change.
Syntax
Section titled “Syntax”IsPlayerVisorDown(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean | nil, string - true while the visor is down, false while it is up; nil and "not connected" for a player who is not connected
Example
Section titled “Example”if IsPlayerVisorDown(pid) then SendClientMessage(pid, COLOR_RED, "The guard: \"Raise your visor, stranger.\"") endSee also
Section titled “See also”OnPlayerVisorChange · SetVoiceVisorMuffle · the Players group of the index
