Configuration
π οΈ Configuration Files
1. Society Configuration (data/society.lua
)
data/society.lua
)This file allows you to set up society accounts with specific permissions and tax rates.
Configuration Structure
Example Configuration
2. General Configuration (data/config.lua
)
data/config.lua
)Configuration Options
π₯οΈ State Bag and Functions
Pay All Invoices
Send Invoice with customizable details
This export allows you to send an invoice with customizable details.
Parameters :
data
(object): Contains the invoice details.billFrom
(string | number): The sender of the invoice. Accepts a playerβs source ID, character ID (CID), or society ID.billTo
(string | number): The recipient of the invoice. Accepts a playerβs source ID or character ID (CID).label
(string): The title or label of the invoice.amount
(number): The total amount to be billed.logoUrl
(string): The URL of the logo to be displayed in the UI.discount
(number): The discount applied to the total amount. This is shown in the UI and calculated in the final price.
Society Financial Management
π§ Configuration Tips
Society Configuration
Ensure
accountName
is uniquejob
can be a single job or multiple jobsgrade
controls access levelsvat
sets tax percentage
General Configuration
Enable
debug
for developmentCustomize
openCommand
to fit your serverallowMinus
controls negative balance permissions
π¨ Important Notes
All societies must be defined in
data/society.lua
Verify job names match your framework
Test configurations in a controlled environment
Last updated