Scripts/resources/[hp]/hp_vehicleshop/server/variables.lua

25 lines
491 B
Lua
Raw Normal View History

2024-12-29 19:48:41 +00:00
Koci = {}
Koci.Framework = Utils.Functions.GetFramework()
Koci.Utils = Utils.Functions
Koci.Server = {
MySQL = {
Async = {},
Sync = {}
}
}
Koci.Callbacks = {}
Koci.Server.RegisterServerCallback = function(key, func)
Koci.Callbacks[key] = func
end
Koci.Server.TriggerCallback = function(key, source, payload, cb)
if not cb then
cb = function() end
end
if Koci.Callbacks[key] then
Koci.Callbacks[key](source, payload, cb)
end
end