opx_infinitymenu
Events
Last updated on
Local events and page channels of the menu module.
Client-local only: they reach handlers inside opx_infinity's client VM, not other resources.
opx:on:menu:action
Client, local. Raised after the owner's callback for every action on every menu.
AddEventHandler('opx:on:menu:action', function(payload) end)- payload:
table— the action payload
opx:on:menu:state
Client, local. A menu opened, or the last one closed. Raised on change only. The HUD listens to it.
AddEventHandler('opx:on:menu:state', function(state) end)- state:
table—{ open = boolean }
Page channels
All on the interactive surface. Every payload carries the menu handle; a payload with a stale handle is dropped.