RegisterServerCallback

Bridge.RegisterServerCallback(name, callback)

Arguments

  • name (string): The name of the callback.

  • callback (function): The callback function.

Returns

  • callback (function): The registered callback function.

Example Usage

Bridge.RegisterServerCallback("getData", function(source, cb)
    cb(true)
end)

Return Structure

If arguments are valid:

callback function

If arguments are not valid:

nil

Last updated