Configuration ​
Everything is in shared/config/:
| File | What |
|---|---|
00_core.lua |
Locale, default difficulty, timeScale, Assist rules, security tolerances, inventory bridge, sibling switches, arcade, stats, sounds |
10_games.lua |
Per game: on / off, shown in the arcade, default difficulty, per-difficulty param overrides |
20_phone.lua |
The np_phone Arcade app |
Everything except the per-difficulty params is also editable live in np_admin (see
Editable in np_admin). The engine reads Config on every new session, so changes apply to the next game.
Core (00_core.lua) ​
Config.Debug = false
Config.Locale = 'en' -- 'en' | 'de' (NUI + notifications)
Config.Difficulty = {
default = 'medium', -- used when a caller passes no difficulty
timeScale = 1.0, -- server-wide: > 1 gives every game more time / wider windows, < 1 less
}
Assist ​
Assist is a player setting in the arcade (and the phone app) for wider windows and more time. It is mirrored to the server, because it changes the rules there.
| Key | Default | |
|---|---|---|
Accessibility.allowAssist |
true |
Players may turn on Assist. false: ignored everywhere |
Accessibility.assistScale |
1.25 |
What Assist does on top of the game's own assist rule (time params × 1.25, speed params ÷ 1.25) |
Accessibility.allowInSecure |
true |
Also honour Assist in server-validated games other resources start (heists, jobs). false: practice only |
A caller can opt a single run out with noAssist = true.
Security ​
| Key | Default | |
|---|---|---|
Security.timedTolerance |
0.8 |
A win faster than 80 % of the game's fastest fair solve is refused (too_fast) |
Security.graceMs |
3000 |
Added to a game's hard time cap (network and NUI) |
Security.clockSlackMs |
1500 |
How far the NUI's clock may run ahead of the server's (clock) |
Security.startTimeoutMs |
15000 |
The client has to show the game within this time (not_shown) |
Security.maxMove |
0 |
Default for opts.maxMove: metres from the start point before moved (0 = not checked) |
Security.flagPerfectStreak |
12 |
perfect grades in a row before staff get a note (0 = off) |
Security.rateLimit |
{ burst = 6, perSecond = 3 } |
NUI → server calls per player (token bucket) |
Security.receiptTtlMs |
120000 |
Profile receipts expire after this time (see Profiles) |
See Security for what each check does.
Inventory ​
Config.Inventory = 'auto' -- 'auto' | 'np' | 'ox' | 'qb' | 'esx' | 'qbx' | 'none'
'auto' picks np_inventory, then ox_inventory, then qb-inventory (ps- / lj- forks), then the framework's player
functions (no durability). 'none' ignores opts.item. See Items.
Integrations ​
Config.Integrations = {
np_phone = true, -- the phone is blocked and put away while a game runs
np_hud = true, -- toasts; the HUD zones below are claimed while a game or the arcade is open
np_menu = true, -- menus close when a game opens; an "Arcade" item in the radial
np_character = true, -- character names and per-character stats without a framework
hudZones = { 'center', 'top-center', 'bottom-center' }, -- np_hud zones under the game card
menuRadial = 'onfoot', -- np_menu radial context of the "Arcade" item (false = no item)
}
Each sibling is only used while it runs. See Integrations.
Arcade, stats and sounds ​
| Key | Default | |
|---|---|---|
Arcade.enabled |
true |
The practice arcade, its radial item and the phone app |
Arcade.command |
'minigames' |
/minigames opens and closes the arcade ('' = no command) |
Arcade.key |
'' |
Optional key mapping for the arcade ('' = none) |
Arcade.leaderboard |
true |
Top 10 per game, practice runs only |
Arcade.cooldownMs |
1500 |
Between two practice runs |
Stats.enabled |
true |
Record stats in np_minigames_stats (memory only without oxmysql) |
Stats.recordSecure |
true |
Also count games other resources start, not only practice |
Sounds.enabled |
true |
Frontend sounds |
Sounds.hit / miss / tick / win / lose / start |
GTA frontend sounds | { name, soundset } for PlaySoundFrontend; '' disables one |
Games (10_games.lua) ​
Every game has an entry, created with defaults when it is missing:
Config.Games.thermite = {
enabled = true, -- false: every Play() of this game fails with 'disabled' and the arcade hides it
arcade = true, -- false: hidden from the arcade only (still playable from other resources)
difficulty = 'hard', -- default when the caller passes none (else Config.Difficulty.default)
params = { -- per-difficulty overrides of the game's params
hard = { cells = 12 },
},
}
Overrides are clamped to each param's range. The params, ranges and presets of every game are on the category pages (Hacking, Breach, Timing, Control, Sport, Search); the order in which they are applied is in Games & difficulty.
Phone app (20_phone.lua) ​
Only used while np_phone runs and Config.Arcade.enabled is on.
Config.Phone = {
enabled = true, -- false: never register the phone app
app = {
id = 'arcade', -- np_phone app id, also the RPC prefix ('arcade.list', ...)
label = 'Arcade',
icon = 'gamepad', -- Font Awesome solid name
tint = 'lilac', -- Nimbus tint (np_phone's 'violet')
default = true, -- on every phone (false: players install it from the App Store)
category = 'game', -- App Store tab: 'app' | 'game'
developer = 'np_minigames',
},
playDelayMs = 450, -- after "Play": time for the phone to close before the game takes NUI focus
notifyBest = true, -- phone notification after a practice run that set a new personal best
}
See Arcade & phone app.
Editable in np_admin ​
With np_admin running, these keys are on its Resource settings page under Minigames
(shared/np_admin_settings.lua). np_admin stores only the overrides; shared/config/ stays the default. Every key
applies live, and the settings are listed even while np_minigames is stopped.
| Category | Keys |
|---|---|
| Difficulty | Difficulty.default, Difficulty.timeScale (0.5–2 ×) |
| Accessibility | Accessibility.allowAssist, Accessibility.assistScale (1–2 ×), Accessibility.allowInSecure |
| Security | Security.timedTolerance (0.5–1), Security.graceMs, Security.receiptTtlMs, Security.flagPerfectStreak |
| Arcade | Arcade.enabled, Arcade.leaderboard, Arcade.cooldownMs, Stats.enabled, Sounds.enabled |
| Integrations | Integrations.np_phone, Integrations.np_hud, Integrations.np_menu, Integrations.np_character |
| Games | Games.<id>.enabled for each of the 19 games |
The per-difficulty params stay in 10_games.lua.
The UI follows the server theme set in np_admin (Settings → np_admin → Theme: brand colour, strength, frosted or
Liquid Glass). Without np_admin it reads the replicated convars np_theme_brand / np_theme_strength /
np_theme_material (setr), else it stays neutral grey.