Configuration

Contents of config.lua

Welcome to the qs-fuelstations configuration! To start configuring your new asset, please read carefully each step in the documentation that we will attach at the end of this message.

Each important part of the configuration will be highlighted with a box. like this one you are reading now, where I will explain step by step each configuration available within this file.

This is not all, most of the settings, you are free to modify it as you wish and adapt it to your framework in the most comfortable way possible. The configurable files you will find all inside client/custom/* or inside server/custom/*.

Direct link to the resource documentation, read it before you start:

https://docs.quasar-store.com/information/welcome

Config = Config or {}
Locales = Locales or {}

--███████╗██╗░░░██╗███████╗██╗░░░░░░██████╗████████╗░█████╗░████████╗██╗░█████╗░███╗░░██╗░██████╗
--██╔════╝██║░░░██║██╔════╝██║░░░░░██╔════╝╚══██╔══╝██╔══██╗╚══██╔══╝██║██╔══██╗████╗░██║██╔════╝
--█████╗░░██║░░░██║█████╗░░██║░░░░░╚█████╗░░░░██║░░░███████║░░░██║░░░██║██║░░██║██╔██╗██║╚█████╗░
--██╔══╝░░██║░░░██║██╔══╝░░██║░░░░░░╚═══██╗░░░██║░░░██╔══██║░░░██║░░░██║██║░░██║██║╚████║░╚═══██╗
--██║░░░░░╚██████╔╝███████╗███████╗██████╔╝░░░██║░░░██║░░██║░░░██║░░░██║╚█████╔╝██║░╚███║██████╔╝
--╚═╝░░░░░░╚═════╝░╚══════╝╚══════╝╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░╚════╝░╚═╝░░╚══╝╚═════╝░

--[[
    The first thing will be to choose our main language, here you can choose
    between the default languages that you will find within locales/*,
    if yours is not there, feel free to create it!
]]

Config.Language = 'en'

--[[
    Framework:
        'esx'
        'qb'
        'vrpex'

    UseTarget:
        'ox_target'
        'qb-target'

        'none'
]]

Config.Framework = 'qb'
Config.UseTarget = 'none' -- target or 'none'

--[[
    Blips settings and their details, note that if you enable
    Config.ShowNearestStations then you will only see the gas
    stations closest to you, this is good for optimizing your server.

    Reference: https://docs.fivem.net/docs/game-references/blips/
]]

Config.ShowNearestStations = true
Config.StationBlips = {
    SetBlipSprite = 361,
    SetBlipScale = 0.6,
    SetBlipColour = 81
}

Config.GasStations = { -- Only for blips
    vector3(49.4187, 2778.793, 58.043),
    vector3(263.894, 2606.463, 44.983),
    vector3(1039.958, 2671.134, 39.550),
    vector3(1207.260, 2660.175, 37.899),
    vector3(2539.685, 2594.192, 37.944),
    vector3(2679.858, 3263.946, 55.240),
    vector3(2005.055, 3773.887, 32.403),
    vector3(1687.156, 4929.392, 42.078),
    vector3(1701.314, 6416.028, 32.763),
    vector3(179.857, 6602.839, 31.868),
    vector3(-94.4619, 6419.594, 31.489),
    vector3(-2554.996, 2334.40, 33.078),
    vector3(-1800.375, 803.661, 138.651),
    vector3(-1437.622, -276.747, 46.207),
    vector3(-2096.243, -320.286, 13.168),
    vector3(-724.619, -935.1631, 19.213),
    vector3(-526.019, -1211.003, 18.184),
    vector3(-70.2148, -1761.792, 29.534),
    vector3(265.648, -1261.309, 29.292),
    vector3(819.653, -1028.846, 26.403),
    vector3(1208.951, -1402.567, 35.224),
    vector3(1181.381, -330.847, 69.316),
    vector3(620.843, 269.100, 103.089),
    vector3(2581.321, 362.039, 108.468),
    vector3(176.631, -1562.025, 29.263),
    vector3(176.631, -1562.025, 29.263),
    vector3(-319.292, -1471.715, 30.549),
    vector3(1784.324, 3330.55, 41.253)
}

--[[
    Here we select the default values on prices and multipliers,
    we do not recommend touching anything except the costs of the
    Jerry can, you can recharge or buy it for the established
    values, remember that when recharging you divide the cost.

    Remember to set if you want the gas tank to burst if you
    break the wire using Config.AddExplosion!

    In Config.TankModels we will configure the model of the fuel tanks
    and their Z offset for the cable. If you do not have any custom ones,
    do not add any more, since all the ones from the game are here.
]]

Config.FuelDecor = '_FUEL_LEVEL'
Config.CostMultiplier = 1.0

Config.JerryCanCost = 100      -- Value of the jerry can
Config.JerryCanRefillCost = 50 -- Value for refilling an existing jerry can

Config.ThrowFuel = false       -- Do you want the nozzle to shoot gasoline onto the ground?
Config.ThrowFuelKey = 24       -- Choose the key to throw gasoline on the ground

Config.CableLength = 3.5
Config.CableMaxLength = 7.0
Config.AddExplosion = false

Config.TankModels = {
    [`prop_gas_pump_1d`] = 2.3,
    [`prop_gas_pump_1a`] = 2.3,
    [`prop_gas_pump_1b`] = 2.3,
    [`prop_gas_pump_1c`] = 2.3,
    [`prop_vintage_pump`] = 1.8,
    [`prop_gas_pump_old2`] = 1.6,
    [`prop_gas_pump_old3`] = 1.6
}

Config.CustomOffsets = {
    ['baller'] = {
        vec3(2, 1, 0),
        vec3(0.5, 1, 0)
    },
    ['guardian'] = {
        vec3(-1.3, -1.0, 0),
        vec3(1.3, -1.0, 0)
    },
    -- Add more vehicles here
}

--[[
    Vehicle configuration and more, here you can configure
    the use of gasoline decay in certain classes or even put a
    list of vehicles that will not lose their gasoline with use
]]

Config.VehiclesClasses = {
    [0] = 1.0,  -- Compacts
    [1] = 1.0,  -- Sedans
    [2] = 1.0,  -- SUVs
    [3] = 1.0,  -- Coupes
    [4] = 1.0,  -- Muscle
    [5] = 1.0,  -- Sports Classics
    [6] = 1.0,  -- Sports
    [7] = 1.0,  -- Super
    [8] = 1.0,  -- Motorcycles
    [9] = 1.0,  -- Off-road
    [10] = 1.0, -- Industrial
    [11] = 1.0, -- Utility
    [12] = 1.0, -- Vans
    [13] = 0.0, -- Cycles
    [14] = 1.0, -- Boats
    [15] = 1.0, -- Helicopters
    [16] = 1.0, -- Planes
    [17] = 1.0, -- Service
    [18] = 1.0, -- Emergency
    [19] = 1.0, -- Military
    [20] = 1.0, -- Commercial
    [21] = 1.0, -- Trains
}

Config.VehiclesFuelUsage = {
    [1.0] = 0.6,
    [0.9] = 0.5,
    [0.8] = 0.4,
    [0.7] = 0.45,
    [0.6] = 0.40,
    [0.5] = 0.35,
    [0.4] = 0.3,
    [0.3] = 0.25,
    [0.2] = 0.2,
    [0.1] = 0.1,
    [0.0] = 0.0,
}

Config.VehiclesBlacklist = {
    't20',
    'zentorno',
    -- 'other'
}

--[[
    Debug mode, this mode is to receive constant prints and information
    from the system, we do not recommend enabling it if you are not a
    developer, but it will help to understand how the resource works.
]]

Config.Debug = true

Last updated