3 Routes
Mission Type 3

Mission Type 3 - Configuration

The third mission type utilizes trailers to transport the cargo. The player will have to reverse the truck into the trailer to load the cargo and then deliver it to the destination. The player will be rewarded with money for completing the mission.

Routes

This config option is the heart of any mission and will determine how the mission will behave. It is highly recommended to have ONE MISSION per file.

Config.Routes["Depot Name"]["Mission Name"] = {
    rewardMoney = 1000,
    rewardType = "money",
    rewardLevel = 5,
    requiredLevel = 1,
    pickup = {
        vec4(-250.59, -248.18, 36.52, 00.00),
        vec4(-174.09, -1429.42, 31.23, 32.42),
        vec4(835.98, -1934.71, 28.96, 177.72),
    },
    deliver = {
         vec4(742.22, -667.25, 27.79, 83.04),
        vec4(-215.13, -2484.84, 6.00, 92.13),
        vec4(874.80, -1530.75, 30.19, 232.93),
        vec4(745.00, -966.39, 24.62, 270.08),
    }
}
  • Routes <> [Depot Name: string][Mission Name: string]: table
    • rewardMoney: number
    • rewardType: string
    • rewardLevel: number
    • requiredLevel: number
    • pickup: table
      • vec4(x, y, z, heading): vector4 (multiple locations can be added, one will be selected randomly)
    • deliver: table
      • vec4(x, y, z, heading): vector4 (multiple locations can be added, one will be selected randomly)
⚠️

Please note that the coords within the pickup and deliver tables, will have to be vector4 (x, y, z, heading) and not vector3 (x, y, z). This ensures that the mission type 2 will work correctly.

Trucks

When players borow a truck to complete the mission, the script will randomly select one of the trucks from the list below. The player will have to use the selected truck to complete the mission.

Config.Trucks["Mission Name"] = {
    'phantom',
    'packer',
    'hauler',
}   
  • Trucks <> [Mission Name: string]: table truckName: string (multiple trucks can be added, one will be selected randomly)
⚠️

Please make sure that the mission name is the same as the one used in Config.Routes, otherwise the script will break.

Trailers

The script will randomly select one of the trailers from the list below. The player will have to use the selected trailer to complete the mission.

Config.Trailers['Mission Name'] = {
    'trailerlogs',
    'tr4',
    'trflat',
}
  • Trailers <> [Mission Name: string]: table trailerName: string (multiple trailers can be added, one will be selected randomly)
⚠️

Please make sure that the mission name is the same as the one used in Config.Routes, otherwise the script will break.