Hi everyone, I have randylogs, but I have a problem in the file server.lua who can solve it?
What is line 9? And have you initialized ESX?
First of all, have u load the ESX script in the server.cfg BEFORE this script? If yes, try to replace the line 4 with this code:
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
I made the change you wrote to me, but I still have nothing but this error, if you like I will send you the script and try to fix it thanks
esx_randylogs-main (1).zip (3.0 KB)