15 lines
287 B
Lua
15 lines
287 B
Lua
ESX = {}
|
|
|
|
exports("getSharedObject", function()
|
|
return ESX
|
|
end)
|
|
|
|
AddEventHandler("esx:getSharedObject", function(cb)
|
|
if ESX.IsFunctionReference(cb) then
|
|
cb(ESX)
|
|
end
|
|
end)
|
|
|
|
-- backwards compatibility (DO NOT TOUCH !)
|
|
Config.OxInventory = Config.CustomInventory == "ox"
|