πŸ›‘οΈ Admin Commands

This section details the administrative commands available in KS-Bank to manage bank accounts.

⚠️ Important: Giving Money via Source ID

If you want to give money to a player's Primary Account using their Server ID (Source), you do not need to use the commands below.

Simply use your Framework's default commands. The banking system is fully integrated with ESX/QBCore/Qbox accounts. When you add money using standard framework commands, it is automatically deposited into the player's Primary Bank Account (the first account created by that person).

  • ESX Example: /giveaccountmoney [ID] bank [Amount]

  • QBCore/Qbox Example: /givemoney [ID] bank [Amount]

πŸ’Έ Give Money by Username

This command is designed to add funds to a specific Bank Username. This is particularly useful for:

  1. Giving money to offline players (since you only need their username).

  2. Funding Shared Accounts or Business Accounts directly.

  3. Targeting a specific secondary account.

Command Usage

Command: Configured in Config.GiveMoneyCommand (Default: /givebank)

/givebank [username] [amount]

Parameters

Argument

Type

Description

username

String

The unique username of the bank account (e.g., john_doe, police_dept).

amount

Number

The amount of money to add.

Permissions & Configuration

  • Permissions: This command is restricted. Only players with groups listed in Config.GiveBankMoneyGroups can use it.

  • Logging: Every successful transaction performed via this command is logged to Discord if Config.Log.GiveBankMoney is set up.

Discord Log Example

When an admin uses this command, a log is generated containing:

  • Admin Name & Discord ID (Who gave the money)

  • Target Username (Who received it)

  • Amount

  • Date & Time

βž– Remove Money by Username

This command is designed to deduct funds from a specific Bank Username. Just like the "Give" command, this is essential for managing Shared Accounts, Business Accounts, or punishing/correcting the balance of Offline Players.

⚠️ Important: Removing Money via Source ID

If you need to remove money from a player who is currently online using their Server ID, you should use your Framework's default administrative commands.

The banking system syncs automatically. If you remove money via the framework, it disappears from their primary bank account immediately.

  • ESX Example: /removeaccountmoney [ID] bank [Amount]

  • QBCore/Qbox Example: /removemoney [ID] bank [Amount]

Command Usage

Command: Configured in Config.RemoveMoneyCommand (Default: /removebank)

Parameters

Argument

Type

Description

username

String

The unique username of the bank account (e.g., bad_guy, taxi_company).

amount

Number

The amount of money to remove.

Permissions & Configuration

  • Permissions: This command is restricted. Only players with groups listed in Config.RemoveBankGroups can use it.

  • Safety Check: The command will fail and notify you if the target account does not have enough funds to cover the removal amount.

Discord Log Example

When money is successfully removed, a log is sent to the webhook defined in Config.Log.RemoveBank. The log includes:

  • Executor: Admin Name, Source ID, and Discord Tag.

  • Target Username: The account that lost the money.

  • Amount: The value deducted.

  • Time: Timestamp of the action.

Last updated