Hey @CelineDumont89,
try to add the following line of code in to the fxmanifest.lua
of your qs-smartphone
resource.
shared_script '@es_extended/imports.lua'
Now all you have to do is read through the scripts and remove code like this:
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
or this:
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
If you did the steps right, it should resolve the problem.