• Please report every thread you think might be harmful or does not meet expectations or the link is offline, you will be refunded the credits you paid and the Thread Starter recieves a message to update his content, if its malicious we remove it and warn and eventualy the TS if it reoccurs.

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

ardaxtabar

New member
Joined
Nov 12, 2021
Messages
1
Reaction score
0
Points
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
Joined
Nov 8, 2021
Messages
3
Reaction score
0
Points
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
Joined
Sep 8, 2021
Messages
6
Reaction score
0
Points
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
Joined
Dec 24, 2021
Messages
13
Reaction score
2
Points
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
Joined
Mar 7, 2022
Messages
1
Reaction score
0
Points
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