STG ScriptsDocumentation
Advanced Banking

Configuration

Every option in STG Advanced Banking config.lua, from bank locations, blips and targets to IBAN rules, donations and the editable files.

All settings live in stg-bank/config.lua. The file stays editable in the escrow version. Restart the resource after a change.

Language

Config.Language = "en"

Available: en, de, fr, pt, sp (Spanish). To change a text, edit the matching file in stg-bank/locales/.

Framework

Config.Framework = "auto"

Prop

Type

Bank name

Config.serverName = "STG Bank"

Name of the bank shown at the top of the bank app.

Interaction

Config.Target = true
Config.TargetSystem = "auto"

Prop

Type

Banks

Config.Banks = {
    vector3(150.266, -1040.203, 29.374),
    vector3(-1212.980, -330.841, 37.787),
    vector3(-2962.582, 482.627, 15.703),
    vector3(-112.202, 6469.295, 31.626),
    vector3(314.187, -278.621, 54.170),
    vector3(-351.534, -49.529, 49.042),
    vector3(252.33, 218.11, 106.29),
    vector3(1175.064, 2706.643, 38.094),
}

The 8 default banks are the Fleeca branches, Pacific Standard and the Blaine County bank. Each point gets a map blip and a 1.5 by 1.5 metre target zone, usable from 2.5 metres. To add a bank, stand at the counter, copy your coordinates and add a new vector3 to the list.

Blip

Config.Blip = {
    sprite = 108,
    color = 2,
    scale = 0.9,
    label = "Bank",
}

Prop

Type

IBAN

Config.ibanNumber = 6
Config.ibanCost = 3000

Prop

Type

Donations

Config.oldQbManagement = false

Config.Donate = {
    [1] = {
        job = "police",
        title = "Support the Police Department!",
        description = "Help the police department improve public safety ...",
        price = 5000
    },
    [2] = {
        job = "ambulance",
        title = "Support the Medical Services!",
        description = "Contribute to the ambulance team ...",
        price = 10000
    }
}

Each entry shows as a card on the Donate tab of the Bills page. The amount is taken from the player's bank balance and paid into the job's society account.

Prop

Type

Prop

Type

ATM props

Config.ATMProps = {
    'prop_atm_03',
    'prop_fleeca_atm',
    'prop_atm_01',
    'prop_atm_02'
}

List of ATM models. This version does not add targets to these props by itself. To open the ATM from your own ATM target or script, trigger the client event stg-bank:openATM. The player enters their 4 digit PIN, then the bank app opens. Players who have not set a PIN on the Options page are told to create one first.

Editable files

These files are also open in the escrow version:

FileWhat you can change
client/editable/notify.luaNotifications inside the bank app and the on-screen prompt
client/editable/target.luaThe ox_target and qb-target zones at the banks
client/editable/mugshot.luaThe player photo on the dashboard
client/editable/billings.luaBills and donations on the client
server/editable/billings.luaBill payments and where donation money goes
server/editable/utils.luaFramework functions for players, money and character names

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page