• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

FIVEM Los Santos Trucker Simulator / Trucker Logistics script (ETS, ATS) (1 Viewer)

ardaxtabar

New member
Nov 12, 2021
1
0
1
Credits
0
SCRIPT ERROR: @vex_trucker/server.lua:210: attempt to index a nil value (global 'ESX')
SCRIPT ERROR: @vex_trucker/server.lua:150: attempt to index a nil value (global 'ESX')

In both lines the problem is this
local users = ESX.GetPlayers()


Script loads E does not work in the blip
 

ALEN TL

New member
Nov 8, 2021
3
0
1
Credits
1
SCRIPT ERROR: @vex_trucker/server.lua:210: attempt to index a nil value (global 'ESX')
SCRIPT ERROR: @vex_trucker/server.lua:150: attempt to index a nil value (global 'ESX')

In both lines the problem is this



Script loads E does not work in the blip
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX=obj end)
on top of the server side
 
  • Post hidden due to user being banned.
  • Post hidden due to user being banned.

mrjappie241

Member
Sep 8, 2021
6
0
1
Credits
7
SCRIPT ERROR: @vex_trucker/server.lua:210: attempt to index a nil value (global 'ESX')
SCRIPT ERROR: @vex_trucker/server.lua:150: attempt to index a nil value (global 'ESX')

In both lines the problem is this



Script loads E does not work in the blip

look for RegisterServerEvent("truck_logistics:getData") part in the server.lua

replace the event with this:

(i took out the vrp_ready part. the menu now opens for me)


RegisterServerEvent("truck_logistics:getData")
AddEventHandler("truck_logistics:getData",function()

local source = source
local user_id = ESX.GetPlayerFromId(source).identifier
if user_id then
isOpen[source] = true
openUI(source,false)
end

end)
 

ELNADE809

Member
Dec 24, 2021
13
2
3
Credits
12
look for RegisterServerEvent("truck_logistics:getData") part in the server.lua

replace the event with this:

(i took out the vrp_ready part. the menu now opens for me)


RegisterServerEvent("truck_logistics:getData")
AddEventHandler("truck_logistics:getData",function()

local source = source
local user_id = ESX.GetPlayerFromId(source).identifier
if user_id then
isOpen[source] = true
openUI(source,false)
end

end)
THANK YOU SO MUCHHHHHHHHHH
 

smithstar

New member
Mar 7, 2022
1
0
1
Credits
7
i have downloaded this mod, it is in another lang and i am unable to do any missions or spawn any trucks ? please help
 

Users who are viewing this thread

Top