Skip to content

Commit

Permalink
Update common.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
wildesPepega authored Feb 15, 2024
1 parent 002ab7b commit df4d884
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions [core]/es_extended/server/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ RegisterNetEvent("esx:onPlayerSpawn", function()
ESX.Players[source].spawned = 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/tutorials-esx/sharedevent for how to fix!"):format(Invoke))
AddEventHandler("esx:getSharedObject", function(cb)
cb(ESX)
end)

exports("getSharedObject", function()
Expand Down

0 comments on commit df4d884

Please sign in to comment.