codeExports

You can easily integrate your other scripts with WoW Banking using these exports.

AddMoney

Adds money to a player or society account

  • Parameters:

    • identifierOrIban (string): The player's citizenID/identifier or the society's job name or account IBAN

    • amount (number): The amount of money to add

  • Example:

    exports.wow_banking:AddMoney('PLAYER_CITIZEN_ID_OR_IBAN', 500)

RemoveMoney

Removes money from a player or society account

  • Parameters:

    • identifierOrIban (string): The player's citizenID/identifier or the society's job name or account IBAN

    • amount (number): The amount of money to remove

  • Example:

    exports.wow_banking:RemoveMoney('police', 1000)

Transaction

LOGGING ONLY. This export adds a transaction record to an account's statement without moving any money. This is useful for logging cash transactions

  • Parameters:

    • identifierOrIban (string): The account identifier

    • amount (number): The amount for the log entry

    • transType (string): The type of transaction ('deposit' or 'withdraw')

    • reason (string): The reason for the log entry

  • Example:

    exports.wow_banking:Transaction('PLAYER_CITIZEN_ID', 250, 'deposit', 'Cash sale of goods')

GetAccountBalance

Returns the current bank balance of a specified account

  • Parameters:

    • identifierOrIban (string): The account identifier

  • Returns:

    • number: The current bank balance

  • Example:

GetIBAN

Retrieves the IBAN for a given player or society identifier.

  • Parameters:

    • identifier (string): The player's citizenID/identifier or society's job name

  • Returns:

    • string: The account's IBAN

  • Example:

FreezeAccount

Freezes or unfreezes a player's or society's bank accounts

  • Parameters:

    • identifierOrIban (string): The account identifier

    • state (boolean): true to freeze the account, false to unfreeze it

  • Example:

GetDebitCard

Returns a table with the details of an account's debit card

  • Parameters:

    • identifierOrIban (string): The account identifier

  • Returns:

    • table: A table containing card_number, card_pin, card_limit, and card_frozen, or nil If no card is issued

  • Example:

Last updated