Server Callbacks
Allows for callbacks initiated from the client used to return information to a client from the server.
Last updated
Allows for callbacks initiated from the client used to return information to a client from the server.
Last updated
RegisterServerCallback(name, func)
Registers a callback on the server-side ready to be called from a client.
name* (string) - uniquely identifying name of the callback
func* (function (source, callback, ...) ) - function to call when the callback is called. All optional arguments sent from the client will be the optional arguments of this function.
* = required arguments
Example (paired with the client-side example):
See for triggering a callback.
Reference: utils/sv_callback.lua