mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
13 lines
443 B
Lua
13 lines
443 B
Lua
exports('getSharedObject', function()
|
|
return ESX
|
|
end)
|
|
|
|
if GetResourceState('ox_inventory') ~= 'missing' then
|
|
Config.OxInventory = true
|
|
end
|
|
|
|
AddEventHandler("esx:getSharedObject", function()
|
|
local Invoke = GetInvokingResource()
|
|
print(("[^1ERROR^7] Resource ^5%s^7 Used the ^5getSharedObject^7 Event, this event ^1no longer exists!^7 Visit https://documentation.esx-framework.org/tutorials/sharedevent for how to fix!"):format(Invoke))
|
|
end)
|