# Config

{% tabs %}
{% tab title="cfg.lua" %}

<pre class="language-lua"><code class="lang-lua"><strong>cfg = {}
</strong>cfg.useTarget = true
cfg.PlayerOnloadEvents = {
    "esx:playerLoaded",
    "QBCore:Client:OnPlayerLoaded",
}

cfg.useSound = true
cfg.lang = 'en'
cfg.billCommand = 'bills'
cfg.billCount = 5 -- for block export

cfg.billAccess = {
    [1] = {
        job = 'police',
        type = 'LSPD FINE'
    },
    [2] = {
        job = 'ambulance',
        type = 'HOSPITAL FINE'
    }
}


cfg.banks = {
    ["banks"] = {
        vector3(149.67, -1040.65, 29.37)
    },
    ["atms"] = {
        'prop_fleeca_atm',
        'prop_atm_01',
        'prop_atm_02',
        'prop_atm_03'
    }
}




cfg.loans = {
    [1] = {
        loan = 'Small Loan',
        duration = 7, -- use day
        amount = 100000, -- loan amount
        interest = 5 -- interest %5
    },
    [2] = {
        loan = 'Car Loan',
        duration = 28, -- use day
        amount = 250000,
        interest = 12
    },
    [3] = {
        loan = 'Business Loan',
        duration = 30, -- use day
        amount = 500000,
        interest = 20
    },
}



if cfg.Framework == "qb" or cfg.Framework == "QB" or cfg.Framework == "qb-core" then
    cfg.Framework = "qb"
    G9Core = exports['qb-core']:GetCoreObject()
elseif cfg.Framework == "qbold" then
    G9Core = nil
    cfg.Framework = "qb"
    
    Citizen.CreateThread(function()
        while G9Core == nil do
            TriggerEvent('QBCore:GetObject', function(obj) G9Core = obj end)
            Citizen.Wait(50)
        end
    end)
elseif cfg.Framework == "esx" or cfg.Framework == "ESX" or cfg.Framework == "es_extended" then
    cfg.Framework = "esx"
    G9Core = exports['es_extended']:getcfgObject()
elseif cfg.Framework == "esxold" then
    G9Core = nil
    cfg.Framework = "esx"

    Citizen.CreateThread(function()
        while G9Core == nil do
            TriggerEvent('esx:getcfgObject', function(obj) G9Core = obj end)
            Citizen.Wait(50)
        end
    end)
else
    cfg.Framework = "custom"
    -- Write your own code cfg object code.
    G9Core = nil
end
</code></pre>

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gravi9.gitbook.io/documations/scripts/bank/config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
