Oxide StudiosOxide Studios

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

  1. Debug Commands
  2. Account Management
  3. Credit Score Management
  4. Loan Management
  5. Job/Gang Account Management
  6. Scheduler Commands
  7. 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]
ParameterDescription
citizenidPlayer's citizen ID
reasonReason 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]
ParameterDescription
citizenidPlayer's citizen ID

Example:

/unfreezeaccount ABC12345

/viewplayeraccounts

View all accounts associated with a player.

/viewplayeraccounts [citizenid]
ParameterDescription
citizenidPlayer'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]
ParameterDescription
citizenidPlayer's citizen ID
scoreNew 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]
ParameterDescription
citizenidPlayer'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]
ParameterDescription
loanIdThe loan ID to approve

Example:

/approveloan 42

Effect:

  • Changes loan status from pending_approval to active
  • Disburses funds to the player
  • Creates bank statement entry
  • Notifies player if online

/denyloan

Deny a pending loan application.

/denyloan [loanId] [reason]
ParameterDescription
loanIdThe loan ID to deny
reasonReason 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]
ParameterDescription
accountJob/gang name
amountAmount to add
reasonTransaction reason (optional)

Example:

/addjobmoney police 50000 Government funding

/removejobmoney

Remove money from a job or gang account.

/removejobmoney [account] [amount] [reason]
ParameterDescription
accountJob/gang name
amountAmount to remove
reasonTransaction reason (optional)

Example:

/removejobmoney police 10000 Equipment purchase

/setjobmoney

Set the exact balance of a job or gang account.

/setjobmoney [account] [amount]
ParameterDescription
accountJob/gang name
amountNew balance

Example:

/setjobmoney police 100000

Warning: This overwrites the current balance entirely.


/viewjobaccount

View details of a job or gang account.

/viewjobaccount [account]
ParameterDescription
accountJob/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]
ParameterDescription
idPlayer server ID
amountAmount of cash

Example:

/givecash 5 1000

Command Summary Table

CommandDescriptionPermission
/bankingdebugToggle debug modeAdmin
/freezeaccountFreeze player accountAdmin
/unfreezeaccountUnfreeze player accountAdmin
/viewplayeraccountsView player's accountsAdmin
/setcreditscoreSet player credit scoreAdmin
/recalculatecreditRecalculate credit scoreAdmin
/pendingloansView loans awaiting approvalAdmin
/approveloanApprove a pending loanAdmin
/denyloanDeny a pending loanAdmin
/addjobmoneyAdd to job/gang accountAdmin
/removejobmoneyRemove from job/gang accountAdmin
/setjobmoneySet job/gang account balanceAdmin
/viewjobaccountView job/gang accountAdmin
/listjobaccountsList all job/gang accountsAdmin
/schedulerstatusView scheduler statusAdmin
/forcedayincrementIncrement in-game dayAdmin
/forceloanpaymentsProcess loan paymentsAdmin
/forceinvoicesProcess overdue invoicesAdmin
/forcemarketupdateUpdate market simulationAdmin
/forceinterestTrigger interest payoutsAdmin
/forcerecurringProcess recurring paymentsAdmin
/forceinquirydecayDecay credit inquiriesAdmin
/givecashGive cash to playerAdmin

Best Practices

  1. Use freeze sparingly - Only freeze accounts for legitimate reasons
  2. Document changes - Keep records of manual balance adjustments
  3. Test in development - Use force commands on test servers first
  4. Backup before bulk operations - Before running force commands on live servers
  5. Notify affected players - When taking administrative actions on accounts

Oxide Banking by Oxide Studios