Kartik Scripts

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

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

📤 Returns

TypeDescription
numberThe current account balance.
nilIf 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.

On this page