βš™οΈ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_prisguard_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(1839.64, 2549.6, 44.92, 261.75)    -- only if you don't use zat-dialog             
}                                                                                                                                                                                                     

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

-- policet vehicle settings (do not change the model )
Config.Vehicles         = {
    model   = 'policet',
    preview = vector4(1843.96, 2542.1, 45.00, 273.52),
    spawn   = {
        vector4(1854.52, 2549.59, 45.66, 267.82),
        vector4(1855.03, 2545.37, 45.66, 269.68),
        vector4(1854.72, 2541.98, 45.66, 269.47),
        vector4(1855.05, 2553.1, 45.66, 267.83)
    },
}

-- policet vehicle offsets for the bags
Config.VehicleOffsets = {
    [1] = vector3(-0.358823, -0.538823, -0.1),
    [2] = vector3(0.301177, -0.538823, -0.1),
    [3] = vector3(-0.358823, -0.978823, -0.1),
    [4] = vector3(0.301177, -0.978823, -0.1),
    [5] = vector3(-0.358823, -1.378823, -0.1),
    [6] = vector3(0.301177, -1.378823, -0.1),
    [7] = vector3(-0.358823, -1.678823, -0.1),
    [8] = vector3(0.301177, -1.678823, -0.1),
    [9] = vector3(-0.358823, -2.048823, -0.1),
    [10] = vector3(0.301177, -2.048823, -0.1),
    [11] = vector3(-0.358823, -2.388823, -0.1),
    [12] = vector3(0.301177, -2.388823, -0.1),
}

-- Fence coords to sell the robbed saspa 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_prisguard_01',
        coords = vector4(1820.6, 2568.84, 44.67, 183.09)
    },
}

-- Delivery peds locations
Config.Peds             = {
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(488.75, -1002.2, 27.01, 272.18)
    },
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(1854.49, 3700.9, 33.27, 32.23)
    },
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(-451.77, 6006.0, 30.84, 132.48)
    },
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(619.72, 17.15, 86.82, 340.68)
    },
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(133.02, 96.58, 82.51, 168.0)
    },
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(236.29, -409.05, 46.92, 335.13)
    }, 
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(333.83, -561.58, 27.74, 344.28)
    }, 
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(1150.76, -1530.01, 34.38, 330.3)
    }, 
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(1839.66, 3674.0, 33.28, 200.66)
    }, 
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(-243.24, 6324.54, 31.43, 323.17)
    }, 
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(478.26, -979.11, 26.98, 5.16)
    }, 
    {
        model = 's_m_m_prisguard_01',
        coords = vector4(1815.96, 3678.49, 33.28, 29.95)
    }, 
}

Last updated