OnPlayerVisorChange
A player closed or opened their helmet’s visor.
down is true when the visor went down, false when it came up. A player starts with it up: one who spawns with the
visor already down calls it once with true, one with it up does not call it. IsPlayerVisorDown reads it at any
time.
Syntax
Section titled “Syntax”function OnPlayerVisorChange(pid, down) -- ...end| Parameter | Type | |
|---|---|---|
pid |
number | the player |
down |
boolean | true = the visor is down now, false = up |
Example
Section titled “Example”-- a closed visor hides who you arefunction OnPlayerVisorChange(pid, down) SetPlayerNameplateHidden(pid, down)endSee also
Section titled “See also”IsPlayerVisorDown · SetVoiceVisorMuffle · SetPlayerNameplateHidden · the Players group of the index
