STG ScriptsDocumentation
Banking System

Configuration

Every option in STG Banking System shared/config.lua, from bank name and currency to social support, blips, ATM models and invoices.

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

Language

Config.Language = "en"

Available: en, de, fr, es, pt, it, nl, pl, sv, ar, jp, zh, he, fi, no. To change a text, edit the matching file in stg_bank/locales/. Texts under web are shown in the bank menu, the rest are notifications and the [E] Open Bank prompt.

Bank name and currency

Config.BankName = "STG BANK"
Config.Currency = "USD"

Prop

Type

Social support

Config.SocialSupport = 1500
Config.SocialSupportCooldown = 60 * 12

Prop

Type

The countdown in the menu shows hours and minutes only, so keep the cooldown at 24 hours (60 * 24) or less for the timer to read correctly.

Banks

Config.Banks = {
    vector3(150.266, -1040.203, 29.374),
    vector3(-1212.980, -330.841, 37.787),
    -- ...
}

Positions of the bank blips on the map. The script ships with the 8 banks of the base map. Add or remove a vector3 to add or remove a blip.

These positions only place blips. Where players can open the bank is decided by Config.ATMProps and Config.BankProps below.

Blip

Config.Blip = {
    Sprite = 108,
    Color = 2,
    Scale = 0.9,
    Label = "Bank",
}

Prop

Type

Blips are short range, so they only show on the minimap when the player is close.

ATMs and bank counters

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

Config.BankProps = {
    'v_corp_fleeca_display',
}

Prop

Type

When a player stands within 1 metre of one of these models, the [E] Open Bank prompt appears and E opens the menu. ATMs and bank counters open the same menu. To make a custom ATM or a bank MLO work, add the model name of its ATM or counter prop to the matching list.

Invoices

The invoices list is filled in stg_bank/server/bills.lua, which is also open in the escrow version.

  • ESX: the list shows the player's unpaid bills from the billing table of esx_billing. Clicking a bill pays it from the bank balance and removes it.
  • QBCore and QBOX: the list stays empty by default. Both callbacks in bills.lua have a -- your code here (QB billing system) spot where you can connect the billing system your server uses.

Notifications

Notifications are sent through lib.notify from ox_lib in the stg_bank:client:notify handler in stg_bank/client/main.lua. Replace that call to use your own notification system. The texts come from the locale file.

Still having trouble?

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

Get help on Discord

On this page