OPX//77
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 state
    • down: the player is down
    • covered: 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 false shows.

Returns

  • Result — value { visible, down, covered }
Example
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.hud exists
    • found: each component's visibility before this module first touched it
    • state: 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

On this page