static class ItemCallbacks (server-side)
Available since version: 0.3.0
Manages server-side item callbacks.
Properties
No properties.
Methods
static setOnUse
Sets the item's use callback.
boolean setOnUse(string instance, function|nil callback)
Parameters:
stringinstance: ItemDefinition instance name.function|nilcallback: Callback, or nil to remove it.
Returns boolean:
True on success.
static setOnEquip
Sets the item's equip callback.
boolean setOnEquip(string instance, function|nil callback)
Parameters:
stringinstance: ItemDefinition instance name.function|nilcallback: Callback, or nil to remove it.
Returns boolean:
True on success.
static setOnUnequip
Sets the item's unequip callback.
boolean setOnUnequip(string instance, function|nil callback)
Parameters:
stringinstance: ItemDefinition instance name.function|nilcallback: Callback, or nil to remove it.
Returns boolean:
True on success.
Callbacks
No callbacks.