Studios
Treasuryhouse-3.jpg

Configuration

SoonTreasuryQbox
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Everything is in config.lua, which is open in the escrow and safe to edit. config.generic.example.lua holds neutral starting values and is not loaded by the resource.

Accounts and governments#

Key Default What it does
Config.Accounts federal (gov_federal), nsw (gov_nsw) The governments: an omes_banking society account and a display label each. The label is also the sender name on society transfers.
Config.Gov { federal = 'federal', state = 'nsw' } Which Config.Accounts keys act as the federal and state treasury. Point both at one key for a single treasury.
Config.StartBalance 10000000 Given once, when an account is first created.
Config.FallbackRoutes Prefix map Which government a ledger kind is booked to when glitch-gov is not running. The longest matching prefix wins and Default catches the rest.

Rates#

Config.Rates is used while glitch-gov is not running. With it running, the State Finances levers win.

Key Default What it does
income 0.10 Income tax on legal pay
gst 0.10 The rate your shop prices already include. The government gets 1/11 of each sale at 10 percent.
stamp 0.03 Stamp duty on dealer cars and houses, charged to the buyer on top
rego 0.0025 Weekly registration, as a share of the dealer price
regoMin 50 Smallest weekly rego bill
exchange 0.05 Materials exchange fee

Income tax#

Key What it does
Config.TaxedResources Resources whose payouts count as legal pay. Payouts through glitch-abstraction are matched on the resource named in their reason.
Config.TaxedReasons Reason patterns that are always taxed. Default { '^paycheck' }.
Config.UntaxedReasons Reason patterns that are never taxed. Keep state%-industry in this list: the lever bonus the treasury pays itself goes through AddMoney again and would be taxed in a loop.
Config.PublicJobs Jobs whose paychecks are government wages. All other jobs are treated as business pay and subsidised.

Integrations#

Config.Integrations = {
    dealer         = 'koja-cardealer',
    rentals        = 'glitch-rentals',
    businessTablet = 'glitch-businesstablet',
}

Set a name to false to turn that integration off. dealer needs an export GetPlayerPrice(model). rentals needs a SQL table glitch_rentals with a plate column. businessTablet needs an export CreditGrant(job, citizenid, amount, why, orderNumber).

Config.Meta holds the standalone values for the glitch-gov data: industry, pay, bankruptFloor (default 0) and bankruptPay (default 100, the percentage of public wages paid while bankrupt).

Rego, weekly transfers and fines#

Key Default What it does
Config.Rego.enabled true Weekly vehicle registration
Config.Rego.intervalDays 7 Days between bills per vehicle
Config.Rego.checkMinutes 60 How often the server looks for bills that are due
Config.Rego.pauseOfflineDays 7 An owner away longer than this skips that week. 0 turns it off.
Config.Weekly.enabled true Weekly state grant and appropriations
Config.Weekly.intervalDays 7 Days between runs
Config.Weekly.checkMinutes 60 How often the server checks whether the week is up
Config.Weekly.grant state_grant, fallback 150000 Federal to state grant
Config.Weekly.appropriations police 100000, ambulance 25000 State to department society accounts
Config.FineShare lever fine_police_share, fallback 25 Percent of every fine_* collection passed to the police society account

Food order grant#

Config.Grant pays the cashier of a food business a flat amount plus a percentage of each customer order, multiplied by their job grade.

Key Default What it does
enabled true Switch the grant on or off
orderPercent 30 Percent of each order
orderFlat 150 Flat amount per player order
npcFlatShare 0.5 Share of the flat amount for NPC walk-in orders
flatMinOrder 15 Orders under this get the percentage only
maxOrdersPer10 10 Order bonuses per employee per interval
sameCustomerMin 15 The same customer counts once in this many minutes
intervalMinutes 10 How often the order count starts again
maxOrderPrice 100000 in code Orders above this are ignored. Not in the shipped file; add it to change it.
businesses burgershot, bubblecafe Food business job names, each with a gradeMult table by grade level

Safety and housekeeping#

Key Default What it does
Config.AllowedCallers Per-export lists Which resources may call each money-moving export. A refused call is named once in the console.
Config.BookRetail true Book the non-GST part of an ox_inventory shop sale as retail revenue
Config.MaxQueuedRows 5000 Ledger rows kept in memory while the database is unreachable
Config.PatchCheckMinutes 30 Warn when the qbx_core patch has not fired this long after a player joined. 0 turns it off.
Config.Debug false Extra console output. It also lets the test flag on the food order event count.
Config.Text Wording table Ledger notes and console messages. Ledger notes are stored as written.