getSharedObject no longer exists

The removal of the method on the part of ESX can lead to the error shown above, especially with newer ESX versions.

If you are using the latest version of ESX, there is an error in the console when starting our scripts. Until this is completely fixed by us, you can apply the following hotfix.

Hotfix: es_extended -> client -> common.lua

client/commmon.lua
AddEventHandler("esx:getSharedObject", function(cb) 
    cb(ESX) 
end)

Insert this code block above

es_extended -> server -> common.lua

server/common.lua
AddEventHandler("esx:getSharedObject", function(cb) 
    cb(ESX) 
end)

Insert this code block below the variables (line 17)

Last updated

Was this helpful?