OPX//77
opx_infinityprompts

Events

Last updated on

Network events and page channels of the prompts module.

A malformed server envelope is dropped on the client in silence. The module also listens to opx:on:downed:changed and the host event OPX.Host.KEYBINDS_CHANGED (open77:keybinds:changed; redraws caps after a rebind).

opx:net:prompts:show

Server → client. Server Show.

RegisterNetEvent('opx:net:prompts:show', function(envelope) end)
  • envelope: table — { owner, id, spec }

opx:net:prompts:update

Server → client. Server Update.

RegisterNetEvent('opx:net:prompts:update', function(envelope) end)
  • envelope: table — { owner, id, patch }

opx:net:prompts:hide

Server → client. Server Hide.

RegisterNetEvent('opx:net:prompts:hide', function(envelope) end)
  • envelope: table — { owner, id }

opx:net:prompts:hideAll

Server → client. Server HideAll.

RegisterNetEvent('opx:net:prompts:hideAll', function(owner) end)
  • owner: string

Page channels

On the overlay surface.

ChannelDirectionPayloadMeaning
prompts:readypage → Lua{}The page mounted. Lua sends the config and the frame.
prompts:configLua → page{ anchor, offset, maxWidth, hold = 'prompts.hold' }Layout. The page no longer reads hold.
prompts:frameLua → page{ groups = { { key, title, rows = { { key, caps, combo, label, value, hold, dim } } } } }The whole strip, ordered, cut and with caps already named.
prompts:hideLua → page{}Take the strip off screen.

On this page