opx_infinitytarget
Events
Last updated on
Local events and page channels of the target module.
The module listens to opx:on:downed:changed: the eye closes and will not open while the player is down.
opx:on:target:opened
Client, local. The eye opened.
AddEventHandler('opx:on:target:opened', function(info) end)- info:
table—{ handle }
opx:on:target:closed
Client, local. The eye closed.
AddEventHandler('opx:on:target:closed', function(reason) end)- reason:
string— e.g.selected,cancelled,input_released,target_changed,player_down,provider_disabled,provider_closed,no_surface,payload_refused,controls_unavailable,option_unavailable,module_stopped
opx:on:target:selected
Client, local. A row was chosen, just before its onSelect runs.
AddEventHandler('opx:on:target:selected', function(context) end)- context:
table— the context
Page channels
On the interactive surface. Every message carries the handle of the current open; others are ignored.