Skip to main content

Configuration

These files stay readable after the Asset Escrow upload:
Every key has a built-in default. A key missing from your config.lua, for example after an update added a new one, uses that default, so an older config keeps working.

General

config.lua

Branches

config.lua
  • coords is the point where the player stands at the counter. The fourth value is the direction the player faces, towards the teller.
  • The teller stands Teller.Offset metres in front of the player, behind the counter. Adjust the offset if a teller stands inside the counter.
  • id must be unique and use letters and numbers only.
To add a branch, stand at the counter facing it, copy your coordinates and heading and add a line.

ATMs

config.lua
Every prop with one of these models is an ATM, including ATMs from map add-ons that use the same models.

Accounts, savings and transfers

config.lua
Change NumberPrefix before players open accounts. Existing account numbers keep their old prefix.

Cards

config.lua
Item cards need an inventory with item metadata. See Cards and ATMs for both modes.

Business accounts, loans and credit score

Config.Business is explained under Business accounts, Config.Loans and Config.CreditScore under Loans and credit score.

Invoices, standing orders and the rest

config.lua

Audit log

API.lua is loaded on the server only. Paste a Discord webhook URL to log deposits, withdrawals, transfers and admin actions:
API.lua
Admin actions (freeze, unfreeze, give, take) are always posted.

Hooks

The hook files let you connect RoadBanking to your own scripts. An error in a hook is printed to the console and ignored, so a broken hook never stops the bank.
server/open.lua

Language

Config.Locale sets the language of the in-game texts and of the bank screen. English (en) and German (de) are built in. To add a language, for example French:
1

Copy the English files

Copy locales/en.lua to locales/fr.lua and public/locales/en.json to public/locales/fr.json.
2

Translate them

In locales/fr.lua, change Locales['en'] to Locales['fr']. Keep the keys and placeholders (%s in Lua, {name} in JSON) as they are.
3

Load the Lua file

Add 'locales/fr.lua', to shared_scripts in fxmanifest.lua, next to the other locale files.
4

Switch the language

config.lua
On the bank screen, a text you leave out of the JSON file, or whose placeholders no longer match, falls back to English. In the Lua file, translate every line: a missing line shows its key instead of a text. You can change the built-in English or German texts the same way.