Everything is in config.lua, with a comment on each setting. Values you put in overrides/*.lua load after it and replace it, so an update never needs to touch your settings.
-- overrides/myserver.lua
Config.PoliceJobs = { 'police', 'sheriff' }
Config.Heist.requireContract = 'yes'
Config.StoreLabels = { strawberry = 'Strawberry 24/7' }
General#
| Key | Default | What it does |
|---|---|---|
Config.Debug |
false |
ox_target zone debug and server console logging. |
Config.TestingModeBypass |
false |
When true, GlobalState.glitchTestingMode works as an admin bypass for everyone. |
Config.Heists |
{ 'store_rob', 'liquor_rob', 'gas_rob' } |
The engine heist ids whose sites count as stores. |
Config.PoliceJobs |
{ 'police' } |
Jobs that can pull footage and cannot rob. |
Config.DirtyMoney |
{ item = 'black_money' } |
The item that holds dirty money. |
Config.Items |
list | Items checked on start: lockpick, advancedlockpick, drill, stethoscope, stickynote, cigarette_carton, lottery_ticket, alarm_codes, black_money. |
Robbery values#
Config.Heist seeds the three definitions in heist/store.lua.
| Key | Default | What it does |
|---|---|---|
minPolice |
2 |
Police needed on duty to start. |
requireContract |
'no' |
'yes' needs a glitch-criminaltablet contract; 'no' opens it to everyone. |
contract |
'store_{site}' |
Contract name, with the site id filled in. |
store, liquor, gas |
see below | Per-kind tuning. |
Each kind takes pot (safe payout range), cut (register payout range), chain (chance of an alarm_codes drop), xp and slots (crew places).
| Kind | pot |
cut |
chain |
xp |
slots |
|---|---|---|---|---|---|
store |
6400 to 7700 | 300 to 400 | 0.06 |
100 |
3 |
liquor |
3650 to 7500 | 200 to 300 | 0.06 |
100 |
2 |
gas |
6400 to 7700 | 300 to 400 | 0.06 |
100 |
2 |
Other values are part of the definitions in heist/store.lua and change live in /heisteditor: the site cooldown (1800 seconds), run length (1200 seconds), the call-in 90 seconds after the start, and the "regular" rule (3 hits in 7 days makes the dial harder and the timelock longer).
Store names#
Config.StoreLabels maps a site id to the name shown on the map and on the tape. Ids you leave out keep the neutral San Andreas name in heist/store.lua. It is empty by default.
CCTV#
| Key | Default | What it does |
|---|---|---|
enabled |
true |
Switches the whole CCTV feature. |
keepMinutes |
30 |
Footage is overwritten after this. |
wipeTime |
90000 |
Milliseconds to wipe the tapes. |
playSeconds |
5 |
Seconds per suspect in the playback. |
wipeRequiresRun |
true |
Only a robber of that store's current run can wipe its tape. |
wipeRetrySeconds |
15 |
Wait after a failed wipe before trying again. |
Lottery#
| Key | Default | What it does |
|---|---|---|
enabled |
true |
Switches lottery tickets on. |
item |
'lottery_ticket' |
The usable item. |
account |
'dirty' |
Where prizes are paid: dirty, cash or bank. |
time |
3500 |
Scratch time in milliseconds. |
prizes |
1% for 1500, 4% for 150, 15% for 30 | Prize table. Chances are added up in order and a roll above the total wins nothing. |
Drill line-up and closed stores#
| Key | Default | What it does |
|---|---|---|
Config.DrillSafe.standOff |
0.75 |
Metres between the safe and the player while drilling. |
Config.DrillSafe.lower |
0.45 |
Metres the player is lowered so the drill meets a low safe door. |
Config.DrillSafe.safeModels |
four safe props | Props the line-up looks for. |
Config.ClosedBlip.sprites |
{ 59, 93, 827, 361 } |
Shop blip sprites hidden while a store is closed. |
Config.ClosedBlip.sprite |
per heist | Sprite for the grey blip when the store has no shop blip. |
Config.ClosedBlip.colour |
40 |
Colour of the grey blip. |
Integrations#
Config.Integrations names the optional resources. Set one to false to switch it off.
Config.Integrations = {
tablet = 'glitch-criminaltablet',
economy = 'glitch-economy',
admin = 'glitch-admin',
}
Config.AdminLog = { webhook = 'criminal', category = 'crime' }
Text#
Every line the resource shows is in locales/en.lua. Robbery messages belong to the heist definitions: edit them in /heisteditor.