FiveM Banking Script
okokBanking is a banking system for ESX with its own interface for banks and ATMs.
Watch the preview video on YouTube
How it works
- You can transfer money to a player even if they are offline.
- When you open the menu for the first time, your IBAN is generated automatically.
- Societies don't need to be added to the database manually: add them to the config file, and the first time someone from that society opens the bank menu it is added to the database.
- Every transaction (deposit, withdrawal, sent or received transfer) updates the graph and the transactions table.
- You can add other transaction types to the bank, for example the salary (explained in the README).
- Players can create a custom IBAN on the Settings page; you set its price, maximum length and whether it can contain letters.
- New players have no PIN code. They set it at a bank on the Settings tab; banks don't ask for the PIN, only ATMs do.
- The user image in the top right changes with the character's gender.
Configuration
- Use okokTextUI or the default help notification
- IBAN prefix and default IBAN length
- Maximum length of custom IBANs and whether they can contain letters
- Cost to change the IBAN and cost to change the PIN
- ATM animation time and ATM distance
- Societies that have a bank account, and the ranks that can access it
- Bank locations and blips on or off
Requirements
okokNotify is not included. okokTextUI is not included; the config uses okokTextUI by default, so set Config.okokTextUI = false if you don't have it.
Installation
- Run the SQL from the README: it creates
okokBanking_transactions and okokBanking_societies and adds iban and pincode columns to users.
- Copy
okokBanking into your resources folder and add ensure okokBanking to your server.cfg.
- Optional: add the salary transaction event to
es_extended/server/paycheck.lua as shown in the README.