mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-23 19:38:36 +00:00
chore(callbacks): update annotations
This commit is contained in:
1 parent
ab4807fee0
commit
9a60f3bd1d
3 files changed
+10
-6
No files matched your search
@@ -1,5 +1,9 @@
|
||||
local ServerCallback = {
|
||||
Register = function(name, callback)
|
||||
local ServerCallback = {}
|
||||
|
||||
---@param name string
|
||||
---@param callback function
|
||||
--- Registers an event handler and callback function to respond to client requests.
|
||||
ServerCallback.Register = function(name, callback)
|
||||
name = ('__cb_%s:%s'):format(GetCurrentResourceName(), name)
|
||||
|
||||
RegisterServerEvent(name, function(...)
|
||||
|
||||
Reference in new issue
Block a user