---
description: >-
  Detailed explanation of the config file to adapt the resource to your player
  needs.
---

# Configuration

## The config.lua

```lua
Config = {}
Config.Framework        = 'qb'          -- ('esx')
Config.FrameworkPseudo  = 'qb-core'     -- custom framework name ('es_extended')
Config.Target           = "interact"          -- 'qb' or 'ox' or 'interact'
Config.Fuel             = "LegacyFuel"  -- LegacyFuel' -- exports['LegacyFuel']:SetFuel(veh, 100.0) 
Config.zatui            = 'zat-ui'      -- set 'qb-menu', if you renamed the 'zat-ui' resource name to 'qb-menu'
Config.Inventory        = 'ox'          -- 'qb', 'qs', 'tgiann' (you can add yours under client/inventories and server/inventories)
Config.Timeout          = 15            -- every 15 minutes a new contract is generated
Config.dispatch         = 'qb-core'     -- 'cd_dispatch' 'ps-dispatch' (client/framework.lua you can add any alert you want to..)
      
Config.NPC = {  
    dialog = true,                                                  
    model  = "s_m_m_ups_01",                       -- only if you don't use zat-dialog                         
    anim   = "CODE_HUMAN_MEDIC_TIME_OF_DEATH",          -- only if you don't use zat-dialog                
    coords = vector4(-413.79, -2799.9, 5.0, 320.08)    -- only if you don't use zat-dialog             
}                                                                                                                                                                                                     

-- Reward of each postOP bag robbed !! 
Config.Exchange = {
    min = 400,
    max = 1200,
}
-- Reward for each postOP delivered bag :
-- XP Level reward :  MAX level is 3 which is equivalent to tier 3.
Config.XP = {
    min = 1,
    max = 2,
}
-- Money reward (cash) : (it is better to be close enough to the Config.Exchange, so the player will not call his friends to rob him...)
-- For Tier 1 : Payout = number of bags * Config.Payout * 1
-- For Tier 2 : Payout = number of bags * Config.Payout * 2
-- For Tier 3 : Payout = number of bags * Config.Payout * 3
Config.Payout = {
    min = 200,
    max = 400,
} 
-- The amount of XP that will be removed from each player group member in case of failing the delivery (Heist case)
Config.Fail = {
    min = 20,
    max = 45
}

Config.pointsPerTier = 100 -- How much xp points to reach the next tier

-- boxville4 vehicle settings (do not change the model )
Config.Vehicles         = {
    model   = 'boxville4',
    preview = vector4(-406.61, -2797.55, 4.9, 313.98),
    spawn   = {
        vector4(-446.13, -2789.4, 4.9, 46.17),
        vector4(-451.6, -2793.14, 4.9, 45.68),
        vector4(-456.22, -2797.02, 4.9, 44.52),
        vector4(-460.67, -2802.14, 4.9, 44.96),
        vector4(-464.33, -2807.67, 4.9, 45.45),
        vector4(-469.79, -2811.15, 4.9, 44.77),
        vector4(-478.54, -2820.52, 4.9, 44.73),
        vector4(-483.26, -2824.12, 4.9, 46.32),
        vector4(-487.75, -2829.1, 4.9, 42.97),
        vector4(-497.6, -2837.45, 4.9, 44.42),
        vector4(-501.51, -2842.27, 4.9, 44.89),
        vector4(-505.97, -2846.67, 4.9, 46.19),
        vector4(-509.92, -2851.71, 4.9, 43.08),
        vector4(-515.22, -2855.84, 4.9, 44.46),
        vector4(-524.13, -2864.32, 4.9, 43.85)
    },
}

-- boxville4 vehicle offsets for the bags
Config.VehicleOffsets = {
    [1] = vector3(-0.258823, -0.258823, -0.1),
    [2] = vector3(0.248823, -0.258823, -0.1),
    [3] = vector3(-0.258823, -0.258823, 0.25),
    [4] = vector3(0.248823, -0.258823, 0.25),
    --
    [5] = vector3(-0.258823, -0.808823, -0.1),
    [6] = vector3(0.248823, -0.808823, -0.1),
    [7] = vector3(-0.258823, -0.808823, 0.25),
    [8] = vector3(0.248823, -0.808823, 0.25),
    --
    [9] = vector3(-0.258823, -1.358823, -0.1),
    [10] = vector3(0.248823, -1.358823, -0.1),
    [11] = vector3(-0.258823, -1.358823, 0.25),
    [12] = vector3(0.248823, -1.358823, 0.25),
    --
    [13] = vector3(-0.258823, -1.908823, -0.1),
    [14] = vector3(0.248823, -1.908823, -0.1),
    [15] = vector3(-0.258823, -1.908823, 0.25),
    [16] = vector3(0.248823, -1.908823, 0.25),
    --
    [17] = vector3(-0.258823, -2.458823, -0.1),
    [18] = vector3(0.248823, -2.458823, -0.1),
    [19] = vector3(-0.258823, -2.458823, 0.25),
    [20] = vector3(0.248823, -2.458823, 0.25),
    --
    [21] = vector3(-0.258823, -3.008823, -0.1),
    [22] = vector3(0.248823, -3.008823, -0.1),
    [23] = vector3(-0.258823, -3.008823, 0.25),
    [24] = vector3(0.248823, -3.008823, 0.25),   
}

-- Fence coords to sell the robbed postOP bags
Config.Fence = {
    [1] =  {model = 's_m_m_migrant_01', anim   = "CODE_HUMAN_MEDIC_TIME_OF_DEATH",  coords = vector4(-564.63, 1885.91, 122.04, 293.56), selling = false},
    -- Add more if you want
}
-- Vault coords to finish the missions
Config.Vaults           = {
    {
        model  = 's_m_m_ups_02',
        coords = vector4(-518.46, -2903.58, 5.0, 118.79)
    },
    {
        model  = 's_m_m_ups_02',
        coords = vector4(-521.65, -2896.34, 5.0, 116.35)
    },
}

-- Delivery peds locations
Config.Peds = {
    { model = "a_m_m_business_01", coords = vector4(-753.58, -1512.24, 4.02, 19.84) },
    { model = "a_f_m_fatcult_01", coords = vector4(-1654.35, -1037.39, 12.15, 54.68) },
    { model = "a_m_y_hipster_01", coords = vector4(-1452.23, -161.55, 48.04, 32.31) },
    { model = "a_f_y_business_02", coords = vector4(-1352.66, 124.52, 55.24, 2.73) },
    { model = "a_m_m_indian_01", coords = vector4(-1514.03, 1512.38, 114.29, 73.28) },
    { model = "a_f_m_bevhills_02", coords = vector4(-1786.27, 3101.5, 31.81, 247.4) },
    { model = "a_m_y_hipster_02", coords = vector4(-2175.4, 4294.86, 48.06, 239.1) },
    { model = "a_f_y_hipster_03", coords = vector4(-560.52, 5282.75, 72.05, 165.94) },
    { model = "a_m_m_soucent_02", coords = vector4(-753.93, 5578.93, 35.71, 92.32) },
    { model = "a_f_m_beach_01", coords = vector4(-6.08, 6274.74, 30.38, 213.84) },
    { model = "a_m_y_vinewood_01", coords = vector4(1698.69, 6425.98, 31.76, 154.22) },
    { model = "a_f_y_bevhills_01", coords = vector4(2553.98, 4668.01, 33.01, 27.93) },
    { model = "a_m_m_eastsa_01", coords = vector4(1929.9, 4635.14, 39.47, 359.76) },
    { model = "a_f_m_ktown_01", coords = vector4(-753.97, 5578.92, 35.71, 89.74) },
    { model = "a_m_m_og_boss_01", coords = vector4(-300.51, 6256.57, 30.49, 228.42) },
    { model = "a_f_y_hipster_02", coords = vector4(-87.66, 6494.53, 31.1, 223.04) },
    { model = "a_m_y_business_02", coords = vector4(-3158.13, 1095.43, 19.88, 254.35) },
    { model = "a_f_m_salton_01", coords = vector4(-2420.51, 3330.72, 31.83, 238.05) },
    { model = "a_m_m_fatlatin_01", coords = vector4(-121.67, 6204.65, 32.38, 45.24) },
}



```
