mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:01:22 +00:00
feat(es_extended): add message to event
This commit is contained in:
@@ -5,3 +5,8 @@ end)
|
|||||||
if GetResourceState('ox_inventory') ~= 'missing' then
|
if GetResourceState('ox_inventory') ~= 'missing' then
|
||||||
Config.OxInventory = true
|
Config.OxInventory = true
|
||||||
end
|
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)
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ Core.Pickups = {}
|
|||||||
Core.PickupId = 0
|
Core.PickupId = 0
|
||||||
Core.PlayerFunctionOverrides = {}
|
Core.PlayerFunctionOverrides = {}
|
||||||
|
|
||||||
|
AddEventHandler("esx:getSharedObject", function()
|
||||||
|
local Invoke = GetInvokingResource()
|
||||||
|
print(("[ERROR] Resource %s Used the getSharedObject Event, this event no longer exists! Visit https://documentation.esx-framework.org/tutorials/sharedevent for how to fix!"):format(Invoke))
|
||||||
|
end)
|
||||||
|
|
||||||
exports('getSharedObject', function()
|
exports('getSharedObject', function()
|
||||||
return ESX
|
return ESX
|
||||||
|
|||||||
Reference in New Issue
Block a user