Config

Framework

To ensure that the script integrates seamlessly with your server, you'll have to set the framework you're using.

Config.Framework = "ESX"
  • Framework: string (the name of your framework)

Need Job

If you want to require a job to access the trucker job, you can set the following configuration.

Config.NeedJob = true
  • NeedJob: boolean (true/false)

Disable Damage

If you want to disable damage for the trucker job, you can set the following configuration.

Config.DisableDamage = true
  • DisableDamage: boolean (true/false)

Disable Default Notify

If you want to disable the default notification that appears when you start a mission, you can set the following configuration. You will then be able to add your own notification with an extention event.

Config.DisableDefaultNotify = false
  • DisableDefaultNotify: boolean (true/false)

Depot

The script utilizes depots to determin the starting and ending points of a mission. You can set the following configuration to add, change or remove depots.

Config.Depot = {
    ["Depot Name"] = {
        coords = vec4(-238.94, -1397.82, 31.28, 263.53),
        truckSpawn = vec4(-224.03, -1368.86, 31.26, 166.37),
        blip = {
            id = 477,
            scale = 0.8,
            color = -1
        }
    },
    ...
}
  • Depot: table
    • [Depot Name: string]: table
      • coords: vec4 (x, y, z, heading)
      • truckSpawn: vec4 (x, y, z, heading)
      • blip:? table (is not required)
        • id: number
        • scale: number (should always be a decimal number / float)
        • color: number

NPC

The script utilizes NPCs to give the player missions. You can set the following configuration to add, change or remove NPCs. The script will the proceed to randomly select one of the NPCs to give the player a mission.

Config.NPC = {
    "s_m_m_autoshop_01",
    "s_m_m_dockwork_01",
    "s_m_m_hairdress_01",
}