GetAccountMoney

exports['kartik-banking']:GetAccountMoney(account)

🔹 Description

Returns the current balance of a company or organization bank account (non-personal, non-shared). This is useful for checking a group account's funds before processing business logic (e.g., bills, purchases).


🔧 Parameters

Name
Type
Required
Description

account

string

The owner ID (e.g., business or gang identifier).


📤 Returns

Type
Description

number

The current account balance.

nil

If the account does not exist or is not allowed.


🧠 Example Usage

local balance = exports['kartik-banking']:GetAccountMoney("gang_xyz")
if balance then
    print("Current balance:", balance)
else
    print("Account not found or invalid.")
end


❗ Limitations

⚠️ This function is only valid for company accounts.

  • Personal and shared accounts are not meant to be used with this export.


Last updated