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
coordsis 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.Offsetmetres in front of the player, behind the counter. Adjust the offset if a teller stands inside the counter. idmust be unique and use letters and numbers only.
ATMs
config.lua
Accounts, savings and transfers
config.lua
Cards
config.lua
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
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
- client/open.lua
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