Agency Docs
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

ExportDescription
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

ExportDescription
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

NameSideDescription
agency_banking:client:OpenBankClientTrigger it from the server to open the bank for that player.
agency_banking:client:MoneyChangedClientTrigger it from the server after another script changed a player's money, and an open bank refreshes.

Still stuck after this page? Our support team takes it from here.