[ESX/QBCore] Trucking Job | Multiple Jobs | Highly Configurable

  • Added support for LB-Tablet
  • Added a new client side export that will give the players current job.

Example:

--- @return table | nil {name = string, description = string, departure = vector3, destination = vector3 | nil}
local CurrentJob = exports['gs-trucking']:JobInfo()

if CurrentJob then
  print('Job Name:', CurrentJob.name)
  print('Job Description:', CurrentJob.description)
  print('Job Departure:', CurrentJob.departure)
  if CurrentJob.destination then
    print('Job Destination:', CurrentJob.destination)
  end
end

Files Updated (v1.1.2)

fxmanifest.lua
shared/config.lua
client/main.lua
client/lbtablet.lua
ui/**
2 Likes