Theme editor

  • If you experience issues login with Discord, reset your password and wait 3 minutes for the email!

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

  • Thread starter Thread starter WolfzinOf
  • Start date Start date
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
 
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
ardaxtabarESX = 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.
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
ardaxtabar
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)
 
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)
mrjappie241THANK YOU SO MUCHHHHHHHHHH
 
i have downloaded this mod, it is in another lang and i am unable to do any missions or spawn any trucks ? please help
 
Back
Top Bottom