Skip to main content
target is a player server id, an identifier (ESX identifier / QBCore & Qbox citizenid), an IBAN, or 'job:police' / 'gang:ballas', so most exports also work for offline players. Amounts must be whole numbers above 0. Calls go through the same checks and logging as the UI. Functions returning boolean, error give one of the error codes listed at the end.

Money

addMoney / removeMoney

transfer

getBalance

logTransaction

Adds a row to the history. No money moves.

Accounts

getAccount / getAccountByIban

getPlayerAccounts

Personal, savings and shared accounts of a player.

createJobAccount / createGangAccount

createSavingsAccount

freezeAccount / unfreezeAccount / isFrozen


Shared accounts


Other

openBank

Opens the bank for a player anywhere on the map. That session skips the location check.

getCreditScore / changeCreditScore


Error codes

invalid_amount, insufficient_funds, account_not_found, account_frozen, same_account, savings_cap, savings_locked, duplicate, database_error, payout_failed, shared_limit, member_limit, already_member, member_not_found, invalid_name