βš™οΈConfiguration

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

The config.lua

Config = {}
Config.Framework        = 'esx'          -- ('esx')
Config.FrameworkPseudo  = 'es_extended'     -- 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(78.91, 112.55, 80.17, 163.66)    -- only if you don't use zat-dialog             
}                                                                                                                                                                                                     

-- Reward of each GoPostal bag robbed !! 
Config.Exchange = {
    min = 400,
    max = 1200,
}
-- Reward for each GoPostal 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   = 'boxville2',
    preview = vector4(60.4, 124.45, 79.13, 160.25),
    spawn   = {
        vector4(74.76, 121.6, 79.1, 160.18),
        vector4(70.98, 120.45, 79.07, 160.96),
        vector4(68.13, 122.43, 79.05, 163.09),
        vector4(63.99, 123.07, 79.06, 157.59)
    },
}

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

-- Fence coords to sell the robbed GoPostal 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_postal_02',
        coords = vector4(113.76, 103.6, 80.17, 164.23)
    },
    {
        model  = 's_m_m_postal_02',
        coords = vector4(118.28, 101.81, 80.14, 163.53)
    },
}

-- 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) },
}


Last updated