OPX//77
opx_infinityhud

Events

Last updated on

The local event, the events the hud listens to, and its page channels.

opx:on:hud:visibility

Client, local. Raised when SetVisible changes the chosen state, or when covered changes.

AddEventHandler('opx:on:hud:visibility', function(state) end)
  • state: table — { visible, down, covered }

Listened to

  • opx:on:character:loaded, unloaded, changed, money, job
  • opx:on:needs:changed, opx:on:needs:effects, opx:on:downed:changed
  • opx:on:entry:state, opx:on:spawn:state, opx:on:menu:state, opx:on:appearance:decision
  • host: open77:playerStatsChanged, open-voice:modeChanged, open77:voice:pushToTalkKeyChanged

It sends nothing to the server.

Page channels

All on the overlay surface. The page sees them as opx:<channel>.

ChannelDirectionPayloadMeaning
hud:readypage → Lua{}The page mounted. Lua resends everything.
hud:configLua → page{ anchor, infoAnchor, statusAnchor, statusOffset, vehicleAnchor, width, segments, voiceSegments }Layout.
hud:showLua → page{ visible }Whole-HUD switch (false while hidden, down or covered).
hud:vitalsLua → page{ gauges = { { id, icon, label, pct, points, tone } } }The gauge column. label is a locale key; tone is decided here.
hud:infoLua → page{ eyebrow, lines = { { id, label, value, tone } } }Money, job and cred lines, values already formatted.
hud:statusLua → page{ chips, hidden }The chip strip from needs.
hud:voiceLua → page{ active, state, caption, mode, distance, level, count, index, key, activation, heard } or { active = false }Microphone block. state: offline, muted, talking, detected or idle.
hud:vehicleLua → page{ active, speed, unit, gear, rpm?, integrity?, integrityLabel, tone, airborne, airborneLabel } or { active = false }Speed dial in km/h.

On this page