esx:getSharedObject

To fix esx:getSharedObject error, you can follow these steps:

 

1. Open client side main.lua file client/main.lua, in your script client side file name, can be not the same as main.lua.

2. After it you will see:

Fivem script

3. You need to replace it, with this:

Fivem mlo

4. Now you need to open the server side main.lua file server/main.lua, also name can be not the same as my.

5. After it you will see:

Esx Scripts

6. You need to replace it, with this:

qbcore scripts

7. Last thing, you need to save and restart the server.

 

If you need more information about ESX FRAMEWORK, you can visit the official site HERE