# Config

## Config File

<pre class="language-lua"><code class="lang-lua"><strong>Locales, Config = {}, {}
</strong>
Config.debug = false -- Debug in console some errors that can happen and dont give feedback to player but give feedback in console

Config.locale = "en" -- Check locales folder | pt or en

Config.cancelDeliveryCommand = {
	command = "cancel-delivery", -- command to cancel delivery
	cooldown = 60, -- Amount in seconds to use cancel delivery command after usage
}

Config.itemToStartDelivery = {
	itemRequiredToStartDelivery = "garbage", -- Item required to start delivery
	itemDecayOnUse = 0.1, -- Item decay amount or false if dont want to decay item
}

Config.validatePlayerDimensionOnDeliver = true -- If you have a normal server where you just want player to be able to deliver on dimension 0

Config.deliveryProgressBarDuration = 5000 -- Amount in miliseconds of progressbar duration to deliver

Config.deliveries = {
	{
		displayName = "No Job Required Delivery", -- Display Name of delivery
		itemToSell = "water", -- item to deliver
		sellAmount = 1, -- quantity required
		payment = {
			item = "money", -- item reward
			quantity = 8300, -- reward amount
		},
		requiredJob = false, -- required job {'police', 'mechanic'} for each required job or false to allow everyone
		pedModel = `g_f_importexport_01`, -- ped model of delivery
		deliveryBlip = {
			sprite = 164, -- Blip Sprite
			color = 1, -- Blip Color
			text = "BlipName", -- Blip display name in map
			mark = true, -- Mark blip on map
			scale = 0.7, -- Size of blip
		},
		locations = { -- Possible locations of the delivery, just will be choose one random location of location below
			vec4(-62.85, -1222.36, 28.73, 237.4),
			vec4(-98.44, -1001.37, 21.28, 358.15),
			vec4(-976.66, -1281.99, 5.71, 22.54),
			vec4(-1114.03, -1688.52, 4.37, 36.68),
			vec4(-720.58, -427.42, 35.05, 84.76),
		},
	},
	{
		displayName = "Police Delivery", -- Display Name of delivery
		itemToSell = "water", -- item to deliver
		sellAmount = 1, -- quantity required
		payment = {
			item = "money", -- item reward
			quantity = 8300, -- reward amount
		},
		requiredJob = { "police" }, -- required job {'police', 'mechanic'} for each required job or false to allow everyone
		pedModel = `g_f_importexport_01`, -- ped model of delivery
		deliveryBlip = {
			sprite = 164, -- Blip Sprite
			color = 1, -- Blip Color
			text = "BlipName", -- Blip display name in map
			mark = true, -- Mark blip on map
			scale = 0.7, -- Size of blip
		},
		locations = { -- Possible locations of the delivery, just will be choose one random location of location below
			vec4(-62.85, -1222.36, 28.73, 237.4),
			vec4(-98.44, -1001.37, 21.28, 358.15),
			vec4(-976.66, -1281.99, 5.71, 22.54),
			vec4(-1114.03, -1688.52, 4.37, 36.68),
			vec4(-720.58, -427.42, 35.05, 84.76),
		},
	},
	{
		displayName = "Police or Mechanic Delivery", -- Display Name of delivery
		itemToSell = "water", -- item to deliver
		sellAmount = 1, -- quantity required
		payment = {
			item = "money", -- item reward
			quantity = 8300, -- reward amount
		},
		requiredJob = { "police", "mechanic" }, -- required job {'police', 'mechanic'} for each required job or false to allow everyone
		pedModel = `g_f_importexport_01`, -- ped model of delivery
		deliveryBlip = {
			sprite = 164, -- Blip Sprite
			color = 1, -- Blip Color
			text = "BlipName", -- Blip display name in map
			mark = true, -- Mark blip on map
			scale = 0.7, -- Size of blip
		},
		locations = { -- Possible locations of the delivery, just will be choose one random location of location below
			vec4(-62.85, -1222.36, 28.73, 237.4),
			vec4(-98.44, -1001.37, 21.28, 358.15),
			vec4(-976.66, -1281.99, 5.71, 22.54),
			vec4(-1114.03, -1688.52, 4.37, 36.68),
			vec4(-720.58, -427.42, 35.05, 84.76),
		},
	},
}
</code></pre>
