The Banking component manages player bank accounts, balance operations, and transaction history. It supports personal checking, savings, and organization accounts.Documentation Index
Fetch the complete documentation index at: https://mythicframework.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Access viaBanking (server-side only).
Account Types
Personal, Savings, Organization
Balance Operations
Deposit, Withdraw, Charge
Transaction Logs
Full transaction history per account
Joint Accounts
Savings accounts with joint owners
Account Management
Banking.Accounts:Get
Get an account by its account number.The bank account number
Account data or
nil if not foundBanking.Accounts:CreatePersonal
Creates or retrieves an existing personal checking account for a character. New accounts start with $5,000.Character State ID (SID)
The personal checking account data
Banking.Accounts:GetPersonal
Retrieves an existing personal checking account.Character State ID (SID)
Personal account or
nil if none existsBanking.Accounts:CreatePersonalSavings
Creates a personal savings account with optional joint owners.Character State ID
Array of State IDs for joint owners
Banking.Accounts:GetPersonalSavings
Gets all savings accounts a character owns or has joint access to.Character State ID
Array of savings accounts (owned and joint)
Banking.Accounts:AddPersonalSavingsJointOwner
Adds a joint owner to a savings account.Account number
State ID of the new joint owner
Banking.Accounts:RemovePersonalSavingsJointOwner
Removes a joint owner from a savings account.Banking.Accounts:CreateOrganization
Creates an organization (business/government) bank account.Custom account number/ID
Display name for the account
Initial balance
Array of job access definitions
Permission values are job permission strings (not grade numbers). The system checks if the player’s job has the specified permission via
Jobs.Permissions:HasJob. Use strings like 'BANK_ACCOUNT_WITHDRAW' which map to job permission definitions.Banking.Accounts:GetOrganization
Retrieves an organization account.Banking.Accounts:AddOrganizationAccessingJob
Adds job access to an existing organization account.Banking.Accounts:RemoveOrganizationAccessingJob
Removes job access from an organization account.Balance Operations
Banking.Balance:Get
Get the current balance of an account.Bank account number
Current balance
Banking.Balance:Has
Check if an account has sufficient funds.Bank account number
Amount to check against
true if balance >= amountBanking.Balance:Deposit
Deposit funds into an account.Bank account number
Amount to deposit
Transaction log entry (see Transaction Log Structure below)
Skip sending phone notification
Updated balance after deposit
Banking.Balance:Withdraw
Withdraw funds from an account.Bank account number
Amount to withdraw
Transaction log entry
Updated balance after withdrawal
Banking.Balance:Charge
Withdraw funds only if the account has sufficient balance.Bank account number
Amount to charge
Transaction log entry
New balance if successful,
false if insufficient fundsTransaction Logs
Banking.TransactionLogs:Add
Record a transaction in the account’s history.Bank account number
Transaction type:
deposit, withdraw, transfer, paycheck, fine, fine_profit, bill, loanTransaction amount
Human-readable title
Transaction details
Related account number, or
false if noneCustom data dictionary
Banking.TransactionLogs:Get
Get transaction history for an account.Bank account number
Array of transaction records for the account
Transaction Log Structure
| Type | Description |
|---|---|
deposit | Funds deposited |
withdraw | Funds withdrawn |
transfer | Funds transferred between accounts |
paycheck | Salary payment |
fine | Government fine |
fine_profit | Fine revenue share |
bill | Bill payment |
loan | Loan payment |
Account Data Structure
Best Practices
Always Use Charge for Purchases
Always Use Charge for Purchases
Log All Transactions
Log All Transactions
Get Account Safely
Get Account Safely
Next Steps
Finance - Payments
Cash, bills, fines, and charges
Finance - Crypto
Cryptocurrency system
Finance - Loans
Loan and credit system
Characters API
Character data access