opx_infinityhud
Client
Last updated on
The hud contract on the client — show, hide and the game's own HUD.
local hud = OPX.Api.Get('hud')From client code inside opx_infinity.
IsVisible
hud.IsVisible()Returns
Result— value{ visible, down, covered }visible: the chosen statedown: the player is downcovered: a full-screen view (join, spawn, menu, wardrobe) holds the display
SetVisible
Shows or hides the HUD. Not stored: resets to shown on restart. Raises opx:on:hud:visibility when it changes.
hud.SetVisible(value)Parameters
- value:
boolean- Any value but
falseshows.
- Any value but
Returns
Result— value{ visible, down, covered }
hud.SetVisible(false) -- cutscene
-- ...
hud.SetVisible(true)Vanilla
Read-only report on the game's own HUD.
hud.Vanilla()Returns
Result— value{ available, found, state }available:Open77.hudexistsfound: each component's visibility before this module first touched itstate:Open77.hud.state()verbatim
ApplyVanilla
Re-applies the VANILLA hide/show plan. Not a Result. downed calls it after a revive, because its own release cleared this resource's hide claims.
hud.ApplyVanilla()Returns
integer— how many components were set