gearConfiguration

โš™๏ธ Configuration

The config.lua file is where you control all the behavior of Space Economy, including progressive taxation, debt management, inflation, money laundering, and police integrations.

Below is a breakdown of each section:


๐Ÿ”น Progressive Tax System (Config.TaxBrackets)

Defines the tax brackets applied to player transactions. Each bracket has a maximum limit (limit) and a tax rate (rate).

Config.TaxBrackets = {
    { limit = 1000, rate = 0.01 },   -- Up to $1,000 โ†’ 1%
    { limit = 5000, rate = 0.03 },   -- Up to $5,000 โ†’ 3%
    { limit = 10000, rate = 0.05 },  -- Up to $10,000 โ†’ 5%
    { limit = nil, rate = 0.08 },    -- Above $10,000 โ†’ 8%
}

๐Ÿ’ก Note: The last bracket with limit = nil ensures that any value above the highest threshold will always be taxed at that rate.


๐Ÿ”น Permissions (Config.Permissions)

Defines who can use the scriptโ€™s administrative commands and panels. Permissions are based on job names and minimum grade levels.

Config.Permissions = {
    ['admin']    = { min_grade = 0 },
    ['police']   = { min_grade = 2 },
    ['governor'] = { min_grade = 0 },
}
  • admin โ†’ Any grade can access.

  • police โ†’ Only grade 2+ can access.

  • governor โ†’ Full access by default.


๐Ÿ”น Inflation System (Config.Inflation)

Controls the dynamic inflation mechanic, which can adjust prices over time.

This system helps keep the economy balanced, preventing excessive inflation or deflation.


๐Ÿ”น Logging (Config.Logging)

Controls how financial actions are logged. The script supports file logs, Discord webhooks, and database logging simultaneously.

๐Ÿ’ก This ensures admins always have traceability for transactions, taxes, debts, and treasury changes.


๐Ÿ”น Money Laundering Fronts (Config.LaunderingFronts)

Allows certain jobs/businesses to act as laundering spots for dirty money.

  • Each business can set laundering fees within defined limits.

  • Laundering has a daily cap to prevent abuse.


๐Ÿ”น Dirty Money Item

Defines the item name in the inventory system that represents dirty money.


๐Ÿ”น Police Warrant Alerts (Config.WarrantAlert)

Controls the message sent to police jobs when unpaid debts generate an arrest warrant.


๐Ÿ”น MDT Charge Configuration (Config.WarrantCharge)

Defines the default charge created in ps-mdt when a warrant is issued.


๐Ÿ”น Admin Panel (Config.AdminPanel)

Defines the physical admin panel location in the game world, where admins can interact with the economy.

  • Adds a blip and marker to the map.

  • Only authorized players can interact with it.

Last updated