Banking
The Banking module provides server-side bank account management.
Server Functions
GetResourceName
Returns the banking resource name.
local name = Bridge.Banking.GetResourceName()
-- Returns: string (always "default")Description:
Returns the name of the Banking module resource. Used for internal identification. Always returns "default" for the built-in Banking module.
GetAccountMoney
Returns the balance of a specific bank account.
local balance = Bridge.Banking.GetAccountMoney(accountName)
-- Returns: number| Parameter | Type | Description |
|---|---|---|
| accountName | string | Account name / identifier |
AddAccountMoney
Adds money to a bank account.
Bridge.Banking.AddAccountMoney(accountName, amount)| Parameter | Type | Description |
|---|---|---|
| accountName | string | Account name / identifier |
| amount | number | Amount to add |
RemoveAccountMoney
Removes money from a bank account.
Bridge.Banking.RemoveAccountMoney(accountName, amount)| Parameter | Type | Description |
|---|---|---|
| accountName | string | Account name / identifier |
| amount | number | Amount to remove |