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)