⚙️Configuration

Detailed explanation of the config file to adapt the resource to your player needs.

The config.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_armoured_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(-23.82, -660.78, 32.48, 186.33)    -- only if you don't use zat-dialog             
}                                                                                                                                                                                                     

-- Reward of each gruppe6 bag robbed !! 
Config.Exchange = {
    min = 400,
    max = 1200,
}
-- Reward for each gruppe6 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

-- Stockade vehicle settings (do not change the model )
Config.Vehicles         = {
    model   = 'stockade',
    preview = vector4(-34.36, -672.48, 31.45, 184.0),
    spawn   = {
        vector4(-35.19, -701.08, 31.95, 339.63),
        vector4(-3.57, -712.11, 31.95, 339.27),
        vector4(-19.51, -671.82, 31.95, 183.56),
        vector4(-6.12, -671.04, 31.94, 185.14)
    },
}

-- Stockade vehicle offsets for the bags
Config.VehicleOffsets = {
    [1] = vector3(-0.358823, -0.938823, 0.639757),
    [2] = vector3(0.301177, -0.938823, 0.639757),
    [3] = vector3(-0.358823, -1.378823, 0.609757),
    [4] = vector3(0.301177, -1.378823, 0.609757),
    [5] = vector3(-0.358823, -1.778823, 0.609757),
    [6] = vector3(0.301177, -1.778823, 0.609757),
    [7] = vector3(-0.358823, -2.078823, 0.599757),
    [8] = vector3(0.301177, -2.078823, 0.609757),
    [9] = vector3(-0.358823, -2.448823, 0.609757),
    [10] = vector3(0.301177, -2.448823, 0.609757),
    [11] = vector3(-0.358823, -2.788823, 0.589757),
    [12] = vector3(0.301177, -2.788823, 0.609757),
}

-- Fence coords to sell the robbed gruppe6 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  = 'ig_andreas',
        coords = vector4(-1297.48, -817.45, 11.06, 136.14)
    },
    {
        model  = 'ig_andreas',
        coords = vector4(257.73, 219.38, 105.29, 166.42)
    },
}

-- Delivery peds locations
Config.Peds             = {
    {
        model = 'a_m_m_business_01',
        coords = vector4(33.59, -1347.93, 28.5, 83.28)
    },
    {
        model = 'a_f_y_business_02',
        coords = vector4(-3041.23, 593.45, 6.91, 195.23)
    },
    {
        model = 'a_f_y_business_01',
        coords = vector4(-3240.81, 1008.92, 11.83, 175.61)
    },
    {
        model = 'a_m_y_business_01',
        coords = vector4(1735.65, 6410.47, 34.04, 61.99)
    },
    {
        model = 's_m_m_security_01',
        coords = vector4(1968.29, 3743.86, 31.34, 120.19)
    },
    {
        model = 's_m_m_bouncer_01',
        coords = vector4(539.97, 2670.83, 41.16, 276.42)
    },
    --
    {
        model = 'a_m_m_business_01',
        coords = vector4(2683.33, 3286.98, 54.24, 148.56)
    },
    {
        model = 'a_f_y_business_02',
        coords = vector4(2558.25, 389.92, 107.62, 181.1)
    },
    {
        model = 'a_f_y_business_01',
        coords = vector4(381.23, 323.38, 102.57, 78.54)
    },
    {
        model = 'a_m_y_business_01',
        coords = vector4(-56.83, -1751.22, 28.42, 233.88)
    },
    {
        model = 's_m_m_security_01',
        coords = vector4(-718.13, -914.99, 18.22, 275.53)
    },
    {
        model = 's_m_m_bouncer_01',
        coords = vector4(-1828.03, 785.03, 137.32, 316.92)
    },
    --
    {
        model = 'a_m_m_business_01',
        coords = vector4(1153.11, -326.2, 68.21, 286.09)
    },
    {
        model = 'a_f_y_business_02',
        coords = vector4(1703.96, 4933.42, 41.06, 150.11)
    },
    {
        model = 'a_f_y_business_01',
        coords = vector4(147.34, -1045.16, 28.37, 75.6)
    },
    {
        model = 'a_m_y_business_01',
        coords = vector4(-1211.47, -335.67, 36.78, 113.87)
    },
    {
        model = 's_m_m_security_01',
        coords = vector4(311.63, -283.49, 53.16, 73.27)
    },
    {
        model = 's_m_m_bouncer_01',
        coords = vector4(-353.46, -54.27, 48.04, 71.85)
    },
    {
        model = 'a_m_m_business_01',
        coords = vector4(-2957.67, 481.77, 14.7, 193.23)
    },
}

Last updated