# Config

```lua
Config = {}

Config.Core = "qb-core" -- Your qb-core folder name
Config.Target = "qb" -- Choose between "qb" or "ox"
Config.Inventory = "qb" -- Choose between "qb" or "ox"
Config.Notify = "qb" -- Choose between "qb" or "okok" or "ox" ( open code on config_functions.lua )
Config.HelpText = "qb" -- "qb" or "ox" ( open code on config_functions.lua )
Config.VehicleKeys = "qb" -- "qb" or "qs" or "renewed" ( open code on config_functions.lua )
Config.Fuel = "LegacyFuel" -- "LegacyFuel" or "okokFuel" or "ox_fuel" or "ti_fuel" or "qs-fuel" ( open code on config_functions.lua )

Config.StartMission = {
	pedSettings = { coords = vector3(1196.88, -3253.59, 7.1), heading = 91.16, model = "s_m_m_dockwork_01" }
}

Config.Blip = {
	location = vector3(1196.88, -3253.59, 7.1),
	enable = true,
	sprite = 408,
	colour = 2,
	scale = 0.8,
	name = "Trucker"
}


Config.Locations = {
	["GeneralDeliveries"] = { -- Type of deliver, don't toucht it
		levelNeed = 1, -- Level need to do
		label = "General Deliveries",
		image = "https://i.imgur.com/5a7RLOp.png",
		averagePayout = { min = 17, max = 105}, -- Average payment for each delivery
		averangeExp = {min = 2, max = 15 }, -- Average exp earn for each delivery
		spawnPoint = {
			coords = vector3(1177.83, -3251.61, 6.03), -- Coords where trucker is gona spawn
			heading = 92.36, -- Heading where trucker is gona spawn
			truck = "phantom", -- Model of truck
			trailers = {
				"trailers2", -- We recommend use only this one because is the only the back doors open if you gona use Config.IllegalAssault
			},
		},
		getMerchandise = {
			[1] = { coords = vector3(922.94, -2439.58, 28.47) },
			[2] = { coords = vector3(937.92, -2441.06, 28.47) },
			[3] = { coords = vector3(1089.44, -2289.76, 30.16) },
			[4] = { coords = vector3(1089.58, -2300.46, 30.15) },
			[5] = { coords = vector3(950.56, -2176.21, 30.55) },
			[6] = { coords = vector3(663.94, -2673.42, 6.08) },
			[7] = { coords = vector3(166.71, -2944.39, 6.0) },
			[8] = { coords = vector3(165.89, -3164.34, 5.89) },
		},
		dropOffs = {
			-- Los Santos
			[1] = { coords = vector3(-312.05, -1365.23, 31.3), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[2] = { coords = vector3(94.86, -1614.4, 29.49), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[3] = { coords = vector3(483.36, -1394.11, 29.28), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[4] = { coords = vector3(473.81, -1230.69, 29.8), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[5] = { coords = vector3(497.34, -581.8, 24.75), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[6] = { coords = vector3(466.34, -579.85, 28.5), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[7] = { coords = vector3(-252.58, 298.68, 91.95), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },
			[8] = { coords = vector3(-73.34, 209.03, 96.48), xpEarn = math.random(2,5), paymentReceive = math.random(17, 58) },

			-- Sandy Shores
			[9] = { coords = vector3(1981.61, 3778.14, 32.18), xpEarn = math.random(5,10), paymentReceive = math.random(32, 89) },
			[10] = { coords = vector3(1960.48, 3854.51, 31.99), xpEarn = math.random(5,10), paymentReceive = math.random(32, 89) },
			[11] = { coords = vector3(1417.54, 3615.18, 34.93), xpEarn = math.random(5,10), paymentReceive = math.random(32, 89) },
			[12] = { coords = vector3(1372.94, 3618.61, 34.89), xpEarn = math.random(5,10), paymentReceive = math.random(32, 89) },
			[13] = { coords = vector3(890.05, 3649.97, 32.83), xpEarn = math.random(5,10), paymentReceive = math.random(32, 89) },
			
			-- Paleto Bay
			[14] = { coords = vector3(-252.42, 6065.49, 31.66), xpEarn = math.random(10,15), paymentReceive = math.random(58, 105) },
			[15] = { coords = vector3(-122.82, 6213.69, 31.2), xpEarn = math.random(10,15), paymentReceive = math.random(58, 105) },
			[16] = { coords = vector3(47.36, 6297.88, 31.24), xpEarn = math.random(10,15), paymentReceive = math.random(58, 105) },
			[17] = { coords = vector3(51.09, 6458.02, 31.37), xpEarn = math.random(10,15), paymentReceive = math.random(58, 105) },
			[18] = { coords = vector3(22.09, 6505.93, 31.49), xpEarn = math.random(10,15), paymentReceive = math.random(58, 105) },
		},
	},
	["GasStationDeliveries"] = { -- Type of deliver, don't toucht it
		levelNeed = 2, -- Level need to do
		label = "Gas Station Deliveries",
		image = "https://i.imgur.com/HZB0ij4.png",
		averagePayout = { min = 152, max = 623}, -- Average payment for each delivery
		averangeExp = {min = 5, max = 10 }, -- Average exp earn for each delivery
		spawnPoint = {
			coords = vector3(1177.83, -3251.61, 6.03), -- Coords where trucker is gona spawn
			heading = 92.36, -- Heading where trucker is gona spawn
			truck = "phantom", -- Model of truck
			trailers = {
				"tanker",
				"tanker2",
			},
		},
		getMerchandise = { -- Loation to get fuel to trailer
			[1] = { coords = vector3(922.94, -2439.58, 28.47) },
			[2] = { coords = vector3(937.92, -2441.06, 28.47) },
			[3] = { coords = vector3(1089.44, -2289.76, 30.16) },
			[4] = { coords = vector3(1089.58, -2300.46, 30.15) },
			[5] = { coords = vector3(950.56, -2176.21, 30.55) },
			[6] = { coords = vector3(663.94, -2673.42, 6.08) },
			[7] = { coords = vector3(166.71, -2944.39, 6.0) },
			[8] = { coords = vector3(165.89, -3164.34, 5.89) },
		},
		dropOffs = {
			-- Los Santos
			[1] = { coords = vector3(-316.4, -1469.92, 30.55), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },
			[2] = { coords = vector3(-719.62, -937.04, 19.02), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },
			[3] = { coords = vector3(-1439.01, -273.49, 46.21), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },
			[4] = { coords = vector3(-2092.17, -319.01, 13.03), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },
			[5] = { coords = vector3(616.77, 269.46, 103.09), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },
			[6] = { coords = vector3(814.46, -1027.05, 26.24), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },
			[7] = { coords = vector3(-74.26, -1758.33, 29.54), xpEarn = math.random(5,10), paymentReceive = math.random(152, 265) },

			-- Sandy Shores
			[8] = { coords = vector3(1209.22, 2663.76, 37.81), xpEarn = math.random(10,15), paymentReceive = math.random(285, 387) },
			[9] = { coords = vector3(264.08, 2612.13, 44.8), xpEarn = math.random(10,15), paymentReceive = math.random(285, 387) },
			[10] = { coords = vector3(2008.84, 3771.56, 32.18), xpEarn = math.random(10,15), paymentReceive = math.random(285, 387) },
			[11] = { coords = vector3(1687.9, 4931.13, 42.08), xpEarn = math.random(10,15), paymentReceive = math.random(285, 387) },

			-- Paleto Bay
			[12] = { coords = vector3(-91.58, 6417.41, 31.47), xpEarn = math.random(15,20), paymentReceive = math.random(475, 623) },
			[13] = { coords = vector3(176.48, 6602.86, 31.85), xpEarn = math.random(15,20), paymentReceive = math.random(475, 623) },
		},
	},
	["CarDeliveries"] = { -- Type of deliver, don't toucht it
		levelNeed = 3, -- Level need to do
		label = "Car Deliveries",
		image = "https://i.imgur.com/dSTj1Br.png",
		averagePayout = { min = 185, max = 276}, -- Average payment for each delivery
		averangeExp = {min = 8, max = 16 }, -- Average exp earn for each delivery
		spawnPoint = {
			coords = vector3(1173.8, -3251.54, 5.85), -- Coords where trucker is gona spawn
			heading = 92.36, -- Heading where trucker is gona spawn
			truck = "phantom", -- Model of truck
			trailers = {
				"trflat",
			},
		},
		dropOffs = {
			[1] = { coords = vector3(-34.35, -1080.94, 27.04), xpEarn = math.random(20,30), paymentReceive = math.random(823, 976) },
			[2] = { coords = vector3(-684.09, -157.77, 37.65), xpEarn = math.random(20,30), paymentReceive = math.random(823, 976) },
			[3] = { coords = vector3(-873.97, -14.87, 42.51), xpEarn = math.random(20,30), paymentReceive = math.random(823, 976) },
			[4] = { coords = vector3(-938.03, 171.7, 66.03), xpEarn = math.random(20,30), paymentReceive = math.random(823, 976) },
			[5] = { coords = vector3(-1379.86, 54.36, 53.68), xpEarn = math.random(20,30), paymentReceive = math.random(823, 976) },
			[6] = { coords = vector3(973.5, 3.87, 81.04), xpEarn = math.random(20,30), paymentReceive = math.random(823, 976) },
		},
	},
}


-- ██╗██╗░░░░░██╗░░░░░███████╗░██████╗░░█████╗░██╗░░░░░  ░█████╗░░██████╗░██████╗░█████╗░██╗░░░██╗██╗░░░░░████████╗
-- ██║██║░░░░░██║░░░░░██╔════╝██╔════╝░██╔══██╗██║░░░░░  ██╔══██╗██╔════╝██╔════╝██╔══██╗██║░░░██║██║░░░░░╚══██╔══╝
-- ██║██║░░░░░██║░░░░░█████╗░░██║░░██╗░███████║██║░░░░░  ███████║╚█████╗░╚█████╗░███████║██║░░░██║██║░░░░░░░░██║░░░
-- ██║██║░░░░░██║░░░░░██╔══╝░░██║░░╚██╗██╔══██║██║░░░░░  ██╔══██║░╚═══██╗░╚═══██╗██╔══██║██║░░░██║██║░░░░░░░░██║░░░
-- ██║███████╗███████╗███████╗╚██████╔╝██║░░██║███████╗  ██║░░██║██████╔╝██████╔╝██║░░██║╚██████╔╝███████╗░░░██║░░░
-- ╚═╝╚══════╝╚══════╝╚══════╝░╚═════╝░╚═╝░░╚═╝╚══════╝  ╚═╝░░╚═╝╚═════╝░╚═════╝░╚═╝░░╚═╝░╚═════╝░╚══════╝░░░╚═╝░░░

Config.IllegalAssault = true -- If true people can stael the trailers of players ( GasStationDeliveries not included )
Config.IllegalAssault = {
	item = "weapon_crowbar", -- Item need to open the truck doors
	amountList = math.random(2,4), -- Amount random items receive
	timeStealing = 10000, -- Time progressbar when player stealing the trailer | 10000 = 10s
	needCops = false, -- Need cops online to steal trucks?
	copsNeed = 2, -- How many cops online?
	copsJobs = { "police", "lspd" }, -- List of your police jobs
	possibleDrops = { -- List of possible rewards
		[1] = { "lockpick", math.random(1,2), chance = 40 },
		[2] = { "water_bottle", math.random(1,2), chance = 100 },
		[3] = { "advancedlockpick", math.random(1,2), chance = 25 },
		[4] = { "phone", math.random(1,2), chance = 80 },
	},
	carsAssault = true, -- Enable players assault CarDeliveries ?
	carsAvailable = { -- List of possible cars can sapwn on trailer
		[1] = { car = "ztype" },
		[2] = { car = "penetrator" },
		[3] = { car = "sultanrs" },
	}
}

Config.SellingCars = {
	enable = true, -- Enable selling cars when steal from CarDeliveries?
	pedCoords = vector3(1258.84, -2566.15, 42.72), -- Ped coords to selling the cars
	pedHeading = 289.67, -- Ped heading to selling the cars
	pedModel = "s_m_y_armymech_01", -- Ped model to selling the cars
	carsSelling = { -- List of cars can be solded
		[1] = { car = "ztype", priceMin = 2341, priceMax = 36523 },
		[2] = { car = "penetrator", priceMin = 7652, priceMax = 12562 },
		[3] = { car = "sultanrs", priceMin = 2231, priceMax = 6742 },
	}
}


-- ██╗░░░░░███████╗██╗░░░██╗███████╗██╗░░░░░  ░██████╗██╗░░░██╗░██████╗████████╗███████╗███╗░░░███╗
-- ██║░░░░░██╔════╝██║░░░██║██╔════╝██║░░░░░  ██╔════╝╚██╗░██╔╝██╔════╝╚══██╔══╝██╔════╝████╗░████║
-- ██║░░░░░█████╗░░╚██╗░██╔╝█████╗░░██║░░░░░  ╚█████╗░░╚████╔╝░╚█████╗░░░░██║░░░█████╗░░██╔████╔██║
-- ██║░░░░░██╔══╝░░░╚████╔╝░██╔══╝░░██║░░░░░  ░╚═══██╗░░╚██╔╝░░░╚═══██╗░░░██║░░░██╔══╝░░██║╚██╔╝██║
-- ███████╗███████╗░░╚██╔╝░░███████╗███████╗  ██████╔╝░░░██║░░░██████╔╝░░░██║░░░███████╗██║░╚═╝░██║
-- ╚══════╝╚══════╝░░░╚═╝░░░╚══════╝╚══════╝  ╚═════╝░░░░╚═╝░░░╚═════╝░░░░╚═╝░░░╚══════╝╚═╝░░░░░╚═╝

Config.LevelSystem = {
	[1] = 0, -- Experience need to level 1
	[2] = 100, -- Experience need to level 2
	[3] = 250, -- Experience need to level 3
	[4] = 500, -- Experience need to level 4
	[5] = 1000, -- Experience need to level 5
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mscripts.gitbook.io/docs/qbcore/jobs/qb-trucker/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
