⚙️Configuration

Comprehensive instructions on configuring files and utilizing export functions.

1. Banking Society Account Exports

These exports allow developers to retrieve, set, add, and remove money from a society account in crm-banking.

  1. Get Society Account Balance

local balance = exports["crm-banking"]:crm_get_money(crm_name)
  • Description: Returns the current balance of the specified society account.

  • Parameters:

    • crm_name (string) – The name of the society account.

  • Returns: (number) – The balance of the society account.

  1. Set Society Account Balance

exports["crm-banking"]:crm_set_money(crm_name, crm_amount)
  • Description: Sets the balance of the specified society account to a fixed amount.

  • Parameters:

    • crm_name (string) – The name of the society account.

    • crm_amount (number) – The new balance to set.

  1. Add Money to Society Account

exports["crm-banking"]:crm_add_money(crm_name, crm_amount)
  • Description: Adds money to the specified society account.

  • Parameters:

    • crm_name (string) – The name of the society account.

    • crm_amount (number) – The amount to add.

  1. Remove Money from Society Account

exports["crm-banking"]:crm_remove_money(crm_name, crm_amount)
  • Description: Removes money from the specified society account.

  • Parameters:

    • crm_name (string) – The name of the society account.

    • crm_amount (number) – The amount to remove.

Last updated