---
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_y_fireman_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(214.14, -1644.5, 28.8, 317.53)    -- only if you don't use zat-dialog             
}                                                                                                                                                                                                     

-- Reward for each LSFD fix :
-- XP Level reward :  MAX level is 3 which is equivalent to tier 3.
-- returning the vehicle will give you extra money and XP.
Config.XP = {
    min = 1,
    max = 2,
}
-- Money reward (cash) : on this script the payment is for each fix, not for the whole contract.
-- player who returns the vehickle will get extra money. (Config.Payout * 2), 
-- returning vehicl is equal to two tasks extra, just to motivate players to return the vehicle.
Config.Payout = {
    min = 200,
    max = 400,
} 

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

-- boxville4 vehicle settings (do not change the model )
Config.Vehicles         = {
    model   = 'firetruk',
    preview = vector4(212.68, -1637.0, 29.00, 319.65),
    spawn   = {
        vector4(215.28, -1639.52, 29.67, 320.86),
        vector4(218.78, -1642.69, 29.69, 319.46)
    },
}

Config.Return           = { -- return vehicle to depot
    {
        model  = 's_m_y_fireman_01',
        coords = vector4(209.02, -1670.77, 28.8, 138.43)
    },
}

-- Lights locations
Config.Locations = {
    Lights = {
        { model = "prop_streetlight_01",  coords = vector3(295.92, 336.62, 104.51) },
        { model = "prop_streetlight_01",  coords = vector3(219.37, 348.4, 104.56) },
        { model = "prop_streetlight_01",  coords = vector3(192.9, 356.48, 105.89) },
        { model = "prop_streetlight_01",  coords = vector3(171.39, 358.77, 108.0) },
        { model = "prop_streetlight_01",  coords = vector3(146.52, 354.66, 109.97) },
        { model = "prop_streetlight_01",  coords = vector3(122.99, 345.62, 111.18) },
        { model = "prop_streetlight_01",  coords = vector3(92.23, 327.82, 111.17) },
        { model = "prop_streetlight_01",  coords = vector3(68.84, 310.16, 110.28) },
        { model = "prop_streetlight_01",  coords = vector3(59.02, 295.85, 109.68) },
        { model = "prop_streetlight_01",  coords = vector3(67.81, 328.47, 111.34) },
        { model = "prop_streetlight_01",  coords = vector3(-31.42, 285.98, 105.78) },
        { model = "prop_streetlight_01",  coords = vector3(-71.84, 283.92, 104.18) },
        { model = "prop_streetlight_01",  coords = vector3(-532.84, -746.64, 31.45) },
        { model = "prop_streetlight_01",  coords = vector3(-518.74, -899.24, 25.65) },
        { model = "prop_streetlight_01",  coords = vector3(-550.5, -1129.11, 19.79) },
        { model = "prop_streetlight_01",  coords = vector3(-631.93, -1342.52, 9.54) },
        { model = "prop_streetlight_01",  coords = vector3(-1077.12, -1333.93, 4.35) },
        { model = "prop_streetlight_01",  coords = vector3(-1257.4, -1393.24, 3.15) },
        { model = "prop_streetlight_01",  coords = vector3(-1035.58, -1637.24, 3.54) },
        { model = "prop_streetlight_01",  coords = vector3(-1528.93, -241.94, 50.39) },
        { model = "prop_streetlight_01",  coords = vector3(-1459.08, -319.29, 43.86) },
        { model = "prop_streetlight_01",  coords = vector3(-1424.42, -363.41, 38.84) },
        { model = "prop_streetlight_01",  coords = vector3(-1741.03, 21.16, 65.87) },
        { model = "prop_streetlight_01",  coords = vector3(-1741.21, 93.61, 66.42) },
        { model = "prop_streetlight_01",  coords = vector3(-1776.36, 98.82, 69.25) },
        { model = "prop_streetlight_01",  coords = vector3(-1806.94, 117.01, 73.4) },
    },
    Boxes = {
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(299.43319702148, 316.76361083984, 104.55360412598, 167.51518249512) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(37.101684570312, -114.67711639404, 54.967102050781, 252.30110168457) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-1031.0814208984, -1224.2530517578, 4.7810792922974, 209.42985534668) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-1224.8282470703, -1311.5731201172, 3.4307260513306, 113.34541320801) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-1275.9215087891, -1349.5471191406, 3.2990736961365, 19.407678604126) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-1560.5739746094, 782.44421386719, 188.37835693359, 118.05903625488) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(900.72741699219, 3579.9389648438, 32.387451171875, 272.15521240234) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(1953.4714355469, 3749.0988769531, 31.11743927002, 302.33596801758) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(571.07769775391, 2742.2131347656, 41.201114654541, 0.0) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-194.42050170898, 407.14929199219, 110.11031341553, 199.56042480469) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(47.520793914795, 336.81237792969, 111.49293518066, 67.510284423828) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-324.05511474609, -1534.0318603516, 26.714731216431, 179.79959106445) },
        { model = "tr_prop_tr_elecbox_01a",  coords = vector4(-151.7043762207, -1420.7651367188, 29.912000656128, 117.32926940918) },
        
    },
    Pumps = {
        { model = "prop_fire_hydrant_1",  coords = vector3(734.2, 91.79, 79.89) },
        { model = "prop_fire_hydrant_1",  coords = vector3(427.3, -360.17, 46.13) },
        { model = "prop_fire_hydrant_2",  coords = vector3(-146.9, -719.65, 33.78) },
        { model = "prop_fire_hydrant_2",  coords = vector3(-193.42, -866.73, 28.28) },
        { model = "prop_fire_hydrant_2",  coords = vector3(-659.0, -950.53, 20.52) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-1120.71, -912.29, 1.73) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-2144.21, -305.89, 12.02) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-1547.17, -858.51, 9.1) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-1295.06, -1143.41, 4.75) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-1201.98, -1263.07, 5.95) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-1081.47, -1488.0, 40.9) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-293.88, -1312.13, 30.29) },
        { model = "prop_fire_hydrant_1",  coords = vector3(-141.19, -1539.63, 33.34) },
        { model = "prop_fire_hydrant_1",  coords = vector3(50.27, -1540.56, 28.29) },
        { model = "prop_fire_hydrant_1",  coords = vector3(346.32, -1718.72, 28.32) },
    }

}

```
