Problem
In ESX Legacy the getSharedObject event was changed. Older resources cause errors.
Solution
Open: resources/[esx]/es_extended/shared/shared.lua
Replace the existing AddEventHandler for esx:getSharedObject with:
AddEventHandler("esx:getSharedObject", function(cb)
cb(ESX)
end)Save the file and restart the FiveM server. The error is fixed.
Was this post helpful?
MagicHosting – Hosting with real value
Hosting pays off with MagicHosting: fair pricing, current deals and operation in SkyLink RZ. Servers, domains and personal support – no hidden costs.
- Current limited offers from our server exchange
- Affordable domains with transparent pricing and great offers
- Powerful DDoS protection for maximum availability
- Personal support when you have questions or issues