Admin Commands
Admin commands for managing accounts, credit scores, and more.
This guide covers all admin commands available in Oxide Banking for server management.
Table of Contents
- Debug Commands
- Account Management
- Credit Score Management
- Loan Management
- Job/Gang Account Management
- Scheduler Commands
- Utility Commands
Permission Requirements
Admin commands require QBCore admin permissions. Make sure users have appropriate permission levels set in qb-core/config.lua:
QBConfig.Server.Permissions = {
'god',
'admin',
'mod',
}
Debug Commands
/bankingdebug
Toggle debug mode for verbose console logging.
/bankingdebug
Effect: Enables/disables detailed logging of banking operations in the server console.
Permission: Admin
Account Management
/freezeaccount
Freeze a player's banking account.
/freezeaccount [citizenid] [reason]
| Parameter | Description |
|---|---|
| citizenid | Player's citizen ID |
| reason | Reason for freezing |
Example:
/freezeaccount ABC12345 Suspicious activity detected
Effect:
- Player cannot make any transactions
- Player receives notification of freeze
- Logged in security events
/unfreezeaccount
Unfreeze a player's banking account.
/unfreezeaccount [citizenid]
| Parameter | Description |
|---|---|
| citizenid | Player's citizen ID |
Example:
/unfreezeaccount ABC12345
/viewplayeraccounts
View all accounts associated with a player.
/viewplayeraccounts [citizenid]
| Parameter | Description |
|---|---|
| citizenid | Player's citizen ID |
Example:
/viewplayeraccounts ABC12345
Output:
=== Player Accounts for ABC12345 ===
Tier: Premium
Checking Balance: $15,000
Savings Accounts: 2
Shared Accounts: 1
Credit Score: 720 (Good)
Active Loans: 1
Credit Score Management
/setcreditscore
Set a player's credit score.
/setcreditscore [citizenid] [score]
| Parameter | Description |
|---|---|
| citizenid | Player's citizen ID |
| score | New credit score (300-850) |
Example:
/setcreditscore ABC12345 750
Note: Score will be clamped to valid range (300-850).
/recalculatecredit
Force recalculation of a player's credit score based on their history.
/recalculatecredit [citizenid]
| Parameter | Description |
|---|---|
| citizenid | Player's citizen ID |
Example:
/recalculatecredit ABC12345
Use Case: When credit score seems incorrect or after manual database changes.
Loan Management
/pendingloans
View all loans pending manual approval.
/pendingloans
Effect: Lists all loans with status pending_approval in the server console.
Output:
Loan #42: ABC12345 - $150,000 (vehicle) - Credit: 680
Loan #43: DEF67890 - $200,000 (business) - Credit: 720
2 loans pending (check console)
Note: Loans over Config.LoanApproval.manualApprovalThreshold (default $100,000) require manual approval.
/approveloan
Approve a pending loan application.
/approveloan [loanId]
| Parameter | Description |
|---|---|
| loanId | The loan ID to approve |
Example:
/approveloan 42
Effect:
- Changes loan status from
pending_approvaltoactive - Disburses funds to the player
- Creates bank statement entry
- Notifies player if online
/denyloan
Deny a pending loan application.
/denyloan [loanId] [reason]
| Parameter | Description |
|---|---|
| loanId | The loan ID to deny |
| reason | Reason for denial |
Example:
/denyloan 42 Insufficient collateral value
Effect:
- Changes loan status to
denied - Records denial reason in notes
- Player not charged any fees
Job/Gang Account Management
/addjobmoney
Add money to a job or gang account.
/addjobmoney [account] [amount] [reason]
| Parameter | Description |
|---|---|
| account | Job/gang name |
| amount | Amount to add |
| reason | Transaction reason (optional) |
Example:
/addjobmoney police 50000 Government funding
/removejobmoney
Remove money from a job or gang account.
/removejobmoney [account] [amount] [reason]
| Parameter | Description |
|---|---|
| account | Job/gang name |
| amount | Amount to remove |
| reason | Transaction reason (optional) |
Example:
/removejobmoney police 10000 Equipment purchase
/setjobmoney
Set the exact balance of a job or gang account.
/setjobmoney [account] [amount]
| Parameter | Description |
|---|---|
| account | Job/gang name |
| amount | New balance |
Example:
/setjobmoney police 100000
Warning: This overwrites the current balance entirely.
/viewjobaccount
View details of a job or gang account.
/viewjobaccount [account]
| Parameter | Description |
|---|---|
| account | Job/gang name |
Example:
/viewjobaccount police
Output:
=== Job Account: police ===
Type: job
Balance: $75,000
Created: 2024-01-15
Last Transaction: Salary payments - $5,000
/listjobaccounts
List all job and gang accounts on the server.
/listjobaccounts
Output:
=== Job/Gang Accounts ===
[JOB] police - $75,000
[JOB] ambulance - $45,000
[JOB] mechanic - $12,500
[GANG] ballas - $8,000
[GANG] vagos - $3,500
Total: 5 accounts
Scheduler Commands
These commands manually trigger scheduled banking operations.
/schedulerstatus
View the current state of the banking scheduler.
/schedulerstatus
Output:
=== Banking Scheduler Status ===
Current In-Game Day: 142
Last Interest Payout: Day 141
Next Loan Payments: Day 147
Last Market Update: Day 141
Recurring Payments: Enabled
/forcedayincrement
Force an in-game day increment (useful for testing).
/forcedayincrement
Effect:
- Increments the in-game day counter by 1
- Does NOT trigger scheduled tasks automatically
/forceloanpayments
Manually trigger loan payment processing.
/forceloanpayments
Effect:
- Processes all due loan payments immediately
- Applies late fees where applicable
- Updates credit scores
- Sends notifications to affected players
Use Case: Testing loan system or processing overdue payments.
/forceinvoices
Manually process overdue invoice late fees.
/forceinvoices
Effect:
- Checks all pending invoices
- Applies late fees to overdue invoices
- Updates invoice statuses
/forcemarketupdate
Force an investment market simulation update.
/forcemarketupdate
Effect:
- Recalculates market trends
- May trigger boom/crash events
- Updates all active investment values
/forceinterest
Manually trigger interest payout for all players.
/forceinterest
Effect:
- Calculates and pays interest to all eligible accounts
- Logs interest payments
- Sends notifications to online players
Use Case: Testing interest system or compensating for missed payouts.
/forcerecurring
Manually process all recurring payments.
/forcerecurring
Effect:
- Processes all due recurring payments
- Fails gracefully for insufficient funds
- Updates next payment dates
/forceinquirydecay
Force decay of credit score hard inquiries.
/forceinquirydecay
Effect:
- Reduces hard inquiry counts
- Improves credit scores for affected players
Utility Commands
/givecash
Give cash to a nearby player (admin utility).
/givecash [id] [amount]
| Parameter | Description |
|---|---|
| id | Player server ID |
| amount | Amount of cash |
Example:
/givecash 5 1000
Command Summary Table
| Command | Description | Permission |
|---|---|---|
/bankingdebug | Toggle debug mode | Admin |
/freezeaccount | Freeze player account | Admin |
/unfreezeaccount | Unfreeze player account | Admin |
/viewplayeraccounts | View player's accounts | Admin |
/setcreditscore | Set player credit score | Admin |
/recalculatecredit | Recalculate credit score | Admin |
/pendingloans | View loans awaiting approval | Admin |
/approveloan | Approve a pending loan | Admin |
/denyloan | Deny a pending loan | Admin |
/addjobmoney | Add to job/gang account | Admin |
/removejobmoney | Remove from job/gang account | Admin |
/setjobmoney | Set job/gang account balance | Admin |
/viewjobaccount | View job/gang account | Admin |
/listjobaccounts | List all job/gang accounts | Admin |
/schedulerstatus | View scheduler status | Admin |
/forcedayincrement | Increment in-game day | Admin |
/forceloanpayments | Process loan payments | Admin |
/forceinvoices | Process overdue invoices | Admin |
/forcemarketupdate | Update market simulation | Admin |
/forceinterest | Trigger interest payouts | Admin |
/forcerecurring | Process recurring payments | Admin |
/forceinquirydecay | Decay credit inquiries | Admin |
/givecash | Give cash to player | Admin |
Best Practices
- Use freeze sparingly - Only freeze accounts for legitimate reasons
- Document changes - Keep records of manual balance adjustments
- Test in development - Use force commands on test servers first
- Backup before bulk operations - Before running force commands on live servers
- Notify affected players - When taking administrative actions on accounts
Oxide Banking by Oxide Studios