Lib.registerCallback(event, callback, ...)
event: string
string
callback: function
function
...: any
any
Lib.registerCallback("example:doubleNumber", function(src, cb, number) local doubleNumber = number * 2 cb(doubleNumber) end)
Lib.deleteCallback(event, invoker)
invoker(optional): string
Lib.deleteCallback("example:doubleNumber")
Last updated 1 month ago