Skip to content

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.

function OnPlayerVisorChange(pid, down)
-- ...
end
Parameter Type
pid number the player
down boolean true = the visor is down now, false = up
-- a closed visor hides who you are
function OnPlayerVisorChange(pid, down)
SetPlayerNameplateHidden(pid, down)
end

IsPlayerVisorDown · SetVoiceVisorMuffle · SetPlayerNameplateHidden · the Players group of the index