mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-24 11:58:35 +00:00
Add files via upload
This commit is contained in:
1 parent
72c2aad38d
commit
bc5c7ad209
5 files changed
+210
No files matched your search
@@ -0,0 +1,16 @@
|
||||
local ServerCallbacks = {}
|
||||
|
||||
local ServerCallback = {
|
||||
Register = function(name, callback)
|
||||
name = ('__cb_%s:%s'):format(GetCurrentResourceName(), name)
|
||||
|
||||
RegisterServerEvent(name, function(...)
|
||||
local source = source
|
||||
callback(source, function(...)
|
||||
TriggerClientEvent(name, source, ...)
|
||||
end, ...)
|
||||
end)
|
||||
end
|
||||
}
|
||||
|
||||
return ServerCallback
|
||||
Reference in new issue
Block a user