Skip to content

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.

IsPlayerVisorDown(pid)
Parameter Type
pid number the player

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

if IsPlayerVisorDown(pid) then SendClientMessage(pid, COLOR_RED, "The guard: \"Raise your visor, stranger.\"") end

OnPlayerVisorChange · SetVoiceVisorMuffle · the Players group of the index