QBESXStandalone
Agency-Banking Exports & API
A complete bank for FiveM that runs on QBCore, Qbox, ESX or fully standalone.
v1.3.1Paid6 Pages

01Client Exports
| Export | Description |
|---|---|
OpenBank() | Opens the bank for the local player, wherever they stand. |
OpenATM() | Opens the ATM PIN screen for the local player. The player must have set up an ATM PIN at a bank first. |
02Server Exports
| Export | Description |
|---|---|
GetBankBalance(source) | Returns the player's bank balance, on every framework and standalone. |
GetCashBalance(source) | Returns the player's cash. |
AddBankMoney(source, amount, reason) | Adds money to the bank balance. Returns true on success, and an open bank refreshes itself. |
RemoveBankMoney(source, amount, reason) | Takes money from the bank balance. Returns false when the balance is too low, and nothing is taken then. |
AddCashMoney(source, amount, reason) | Adds cash. Returns true on success. |
RemoveCashMoney(source, amount, reason) | Takes cash. Returns false when there is not enough, and nothing is taken then. |
AddTransaction(identifier, type, amount, reason) | Writes an entry into a player's activity log by identifier (citizenid on QBCore and Qbox, identifier on ESX, licence standalone). |
GetFramework() | Returns the framework the bank detected: qbcore, esx or standalone. |
03Events
| Name | Side | Description |
|---|---|---|
agency_banking:client:OpenBank | Client | Trigger it from the server to open the bank for that player. |
agency_banking:client:MoneyChanged | Client | Trigger it from the server after another script changed a player's money, and an open bank refreshes. |