Server

registerCallback

Usage

Lib.registerCallback(event, callback, ...)
  • event: string

  • callback: function

  • ...: any

Example

Lib.registerCallback("example:doubleNumber", function(src, cb, number)
    local doubleNumber = number * 2
    
    cb(doubleNumber)
end)

deleteCallback

Usage

Lib.deleteCallback(event, invoker)
  • event: string

  • invoker(optional): string

Example

Lib.deleteCallback("example:doubleNumber")

Last updated