OPX//77
CreatorsClient exports

Subscribe

Last updated on

Forwards an OPX client event to your reply export each time it is raised.

local res = exports.opx_infinity:Subscribe(event, reply)

Sync. Forwarding lasts until you unsubscribe or your resource stops. Subscribing again just changes the reply export. Only the listed events can be subscribed to.

Parameters

Returns

  • true

Errors

  • export.notSubscribable, export.badArgument, export.callerDenied
Example
CreateThread(function()
	exports.opx_infinity:Subscribe('opx:on:character:money')
end)

On this page

No Headings