Configuration

Contents of config.lua

Welcome to qs-banking configuration! To start configuring your new asset, please read carefully each step in the documentation each step in the documentation 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 available configuration available inside this file.

This is not all, most of the configurations, you are free to modify them as you wish and adapt them to your as you wish and adapt them to your framework in the most comfortable way possible.

The configurable files you will find all of them inside client/custom/* or inside server/custom/*.

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' -- 'en' or 'es' by default (you can create more)


--[[
    Framework configuration and tools of your server!
    Please read the usable options carefully, in case they
    are not here you can add more or modify the default ones
    in the client/custom/* and server/custom/* directories.

    Please choose from the following options:

    Framework:
        'esx'
        'qb'

    UseTarget:
        'ox_target'
        'qb-target'

        'none'
]]

Config.Framework = 'qb'  -- 'esx' or 'qb'
Config.UseTarget = 'none' -- 'ox_target', 'qb-target' or 'none'


--[[
    Extra configurations that will serve to maintain a stable
    economy and even manage general visuals of your script
]]

Config.ShowBlips = true -- Do you want to enable blips on the map?
Config.AtmLimit = 1500  -- Money withdrawal limit through ATMs


--[[
    This part will deal with metadata and for this you need to
    have a system compatible with metadata items. Below I will
    mention the inventories that are compatible with this function.

    'qs-inventory'
    'qb-inventory'
    'ox_inventory'
    'core_inventory'

    If you do not have these, ignore this step. Otherwise, here
    you can set the price for creating credit cards and even
    spot exclusively for creating credit cards if you want.
]]

Config.Metadata = true              -- Only use this option if you use an inventory mentioned above
Config.CreateCardPrice = 100        -- The price to create a credit card

Config.CreateCardEverywhere = false -- Can you create cards in all banks or only in the configured spots?
Config.CreateCard = {               -- Spots to create cards (optional)
    {
        coords = vec3(143.26641845703, -1042.5906982422, 29.367889404297)
    }
}


--[[
    Here you can add the spots of the banks you want, each one will
    have its ID so you can choose its blip. You can also add props
    considered as ATM, if it does not use metadata, they will be normal
    banks, if it uses metadata you will only be able to access using the card.
]]

Config.Bank = { -- All physical banks
    { id = 108, x = 150.266,   y = -1040.203, z = 29.374 },
    { id = 108, x = -1212.980, y = -330.841,  z = 37.787 },
    { id = 108, x = -2962.582, y = 482.627,   z = 15.703 },
    { id = 108, x = -112.202,  y = 6469.295,  z = 31.626 },
    { id = 108, x = 314.187,   y = -278.621,  z = 54.170 },
    { id = 108, x = -351.534,  y = -49.529,   z = 49.042 },
    { id = 108, x = 241.727,   y = 220.706,   z = 106.286 },
    { id = 108, x = 1175.064,  y = 2706.643,  z = 38.094 }
}

Config.ATMModels = { -- All ATM in your city
    'prop_atm_01',
    'prop_atm_02',
    'prop_atm_03',
    'prop_fleeca_atm'
}


--[[
    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
Config.ZoneDebug = false

Last updated