Everything is in shared/config.lua, which stays readable under escrow (escrow_ignore). Restart the resource after a change.
General#
| Setting | Default | What it does |
|---|---|---|
config.DebugCommands |
false |
Registers the /test... commands. Anyone can run them and they award XP like a real game, so keep this off on a live server. |
config.DebugPrints |
false |
Verbose client console output, NUI console.log, and a server line each time a player uses Zero day. |
config.usingGlitchNotifications |
false |
Result popups (success, failed, cancelled) through glitch-notifications when it is running. |
config.NotifyColour |
'#A855F7' |
Accent colour of glitch-notifications popups. |
config.NetGuard |
true |
Reports this resource's net event counts to glitch-poolcleaning when that resource is installed. Does nothing without it. |
config.CancelKeys |
{ 'BACKSPACE', 'ESCAPE' } |
Keys that close a running panel game. Supported: 'BACKSPACE', 'ESCAPE', 'ENTER'. |
config.MuteKey |
'TAB' |
Mutes the full-screen games. 'TAB', 'CAPS' or 'M'. 'M' clashes with letter input in Keys, Word Crack and Backdoor Sequence. Each player's choice is saved on their client. |
config.Text |
{} |
Translations, keyed by the exact English text, for example ['Cancel'] = 'Annuler'. Empty means English. |
config.BruteForcePasswords |
8 words | Words Brute Force picks from. Each must be exactly 8 characters; other lengths are skipped. |
XP#
| Setting | Default | What it does |
|---|---|---|
config.XP.Enabled |
true |
false means the games never touch an XP resource. Nothing happens either way until one is running. |
config.XP.Resources |
{ 'glitch-xpSystem', 'glitch_xpSystem' } |
The first started resource in this list is used. |
config.XP.Category |
'hacking' |
XP category. It must exist in your XP resource. |
config.XP.FailXP |
0 |
XP for a lost game. |
config.XP.ClientReported |
true |
false means XP is only given through the AwardXP server export. |
config.XP.RequireServerSession |
false |
true means a client-reported result only counts for a game your server opened with OpenXPSession. |
config.XP.MinDuration |
2 |
Seconds a game must run before a client-reported result counts. |
config.XP.MinDurations |
drills 8, Brute Force 5, Data Crack 4 | Per-game minimums in seconds. |
config.XP.Cooldown |
15 |
Seconds between awards per character. |
config.XP.MaxAwardsPerHour |
20 |
Awards per character in a rolling hour, all award paths together. |
config.XP.Perks |
see XP and Perks | Perk keys read from the XP resource, plus Enabled = true. |
config.XP.ZeroDayNever |
Glitch Studios heists | Resources whose games never offer the Zero day skip. Names that are not installed are ignored. |
config.XP.ZeroDaySeconds |
4 |
How long the skip offer stays on screen. |
config.XP.OptIn |
{ StartCircleClickGame = true } |
Games that give no XP unless the call passes { xp = true }. |
config.XP.Games |
15 to 40 per game | XP per win, keyed by export name. Remove a game or set it to 0 for no XP. |
Style and HUD#
| Setting | Default | Choices |
|---|---|---|
config.ActiveTheme |
'glitch' |
'glitch', 'cyan', 'monochrome' or your own key in config.Themes |
config.ActiveVisualTheme |
'device' |
'device', 'tablet', 'modern', 'classic' |
config.ActiveKeybindTheme |
'tags' |
'tags', 'default', 'device', 'tablet' |
config.ActiveSoundTheme |
'gta' |
'gta' (GTA frontend sounds) or 'classic' (the mp3s in ui/sounds) |
config.LockpickStyle |
'padlock' |
'dial', 'arc', 'dots', 'realistic', 'padlock' |
config.KeybindDisplay |
'auto' |
'auto', 'uiElements', 'standalone' |
config.KeybindPosition |
nil |
glitch-uiElements position such as 'left', 'right' or 'bottom'. nil uses its default. |
config.CircleClickPosition |
'bottom' |
'bottom', 'center', 'top', 'left', 'right', the four corners, or { x = 0.5, y = 0.8 } |
config.OxTextUIPosition |
'left-center' |
'left-center', 'right-center', 'top-center' |
config.BackgroundOpacity |
classic 0.80, modern 0.90, tablet 0.98, device 0.98 |
0.0 to 1.0 per panel look |
config.SoundThemes |
gta set |
Maps click, buttonPress, penalty, success and failure to a frontend sound name and sound set. |
config.Themes |
cyan, monochrome, glitch |
Colour tables. See Theme Configuration. |
Stuck on a step?Ask in the Discord →