"Used the getSharedObject event, this event no longer exists" error

trying to fix i did what was told and still getting this error any fix i can do?

It literally has a URL for you to visit that explains the issue, highly suggest doing so

1 Like

@itzJay420 just add this everywhere were ESX is used place it on top.


if (GetResourceState("es_extended") == "started") then
    if (exports["es_extended"] and exports["es_extended"].getSharedObject) then
        ESX = exports["es_extended"]:getSharedObject()
    else
        TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end)
    end
end