CreatorsClient exports
OpenPanel
Last updated on
Opens the OPX side panel, owned by your resource.
local res = exports.opx_infinity:OpenPanel(spec)Sync. Every action on the panel reaches your reply export as opx:on:panel:action.
Parameters
-
spec:
table— the panel spec without functions;idis requiredowner,onandstealare set by OPX; any you pass are ignored.- reply?:
string— the export your answers go to
-
Never over another owner's panel. Closed when your resource stops (
owner_stopped).
Returns
{ handle, id }
Errors
panel_busy, spec errors such asinvalid_idorunknown_field,export.badArgument
local res = exports.opx_infinity:OpenPanel({
id = 'stall', title = 'NIGHT MARKET',
actions = { { id = 'buy', label = 'Buy' } },
})