Files
jim_bridge/documentation/main_functions/societybank.md
oosayeroo 451e4cbbdb better documentation layout
- seperated the 2000+ lines in ReadMe.md into seperate files.
 - useful if things expand
 - better readability for users
 - more organised layout
2025-05-16 14:28:41 +01:00

670 B
Raw Blame History

societybank.lua

This module handles financial operations for society accounts, typically used for jobs or organizations.

  • getSocietyAccount(society)

    • Retrieves the current balance for the specified society.
    • Example:
      local balance = getSocietyAccount("police")
      print("Police account balance: $"..balance)
      
  • chargeSociety(society, amount)

    • Deducts a specified amount from the society's account.
    • Example:
      chargeSociety("police", 500)
      
  • fundSociety(society, amount)

    • Adds funds to a societys account.
    • Example:
      fundSociety("ambulance", 1200)