Integrations ​
Two directions: what np_minigames does with the np_* siblings while they run, and what the np_* resources use np_minigames for.
np_* siblings ​
np_minigames talks to these resources while they run (integrations/*.lua, each call checked with
GetResourceState and run in a pcall). Nothing is needed on their side. Each one can be switched off in
Config.Integrations or in np_admin.
| Sibling | While a game runs | Also |
|---|---|---|
| np_phone | Blocked with setBlocked(src, true, 'minigame') on the server and setBlocked(true, 'minigame') on the client (local games too); an open phone is put away. Released on every end path, including drops and stops |
The Arcade app, which follows the phone's Liquid Glass setting |
| np_hud | ClaimZones(Config.Integrations.hudZones, 'game'): by default center, top-center and bottom-center, the zones under the game card. Released afterwards; the same while the arcade is open |
Toasts through Notify (a chat line without np_hud) |
| np_menu | Open menus close when a game opens: closeMenus(src) for server games, the client closeMenus('minigame') for local ones (close / closeContext / closeRadial on np_menu builds without it) |
An Arcade item in the radial (context Config.Integrations.menuRadial, default onfoot) while Config.Arcade.enabled |
| np_character | On servers without a framework: names from getActiveCharacter + getCharacter, stats per character |
|
| np_inventory, ox_inventory, qb-inventory | opts.item: count, remove, durability (np_inventory first, through GetItemCount, RemoveItem and DegradeItem, np_inventory's own item wear; SetDurability on older versions) |
|
| np_admin | Resource settings, permission nodes, Send a minigame, logs, the central theme |
At start the console prints one line per sibling.
What the np_* resources use it for ​
Every resource below keeps its own built-in minigame when np_minigames is not started, and has a config switch
(Config.Minigames.enabled, and per use) to turn the integration off. Its own checks (tokens, distance, items it
owns, alarms, loot) stay around the game; np_minigames only decides the outcome.
| Resource | What runs in np_minigames | Switch |
|---|---|---|
| np_banking | Robbery hack → hexhack, thermite → thermite, drill → drill; every Pacific / Union sync terminal → hexhack inside np_banking's own sync window; the ATM jackpot → hexhack, with onProgress driving the trace bar on the ATM's screen. Game and difficulty per use, difficulty per heist and stage |
Config.Minigames in robbery.lua, np_admin Minigames |
| np_prison | Every skill check that pays (work detail steps, the cook's shrinking zone, activities, tunnel digging, fence layers, the shank) through profiles + receipts; the fence can be wires |
Config.Minigames (minigames.lua), np_admin Prison → Minigames |
| np_mechanic | Install torque checks → torque (np_minigames' card replaces the ring screen); quick fixes (repair kit, spare tyre, jump start) → a server-checked skillcheck first |
Config.Minigames (minigames.lua), np_admin Mechanic → Minigames |
| np_passwords | The code breaker → crack (mode = 'play' with the difficulty from the lock's strength, or 'auto' passive); pattern locks → pattern |
Config.Minigames.crack, np_admin Passwords → Minigames |
| np_drugs | Attended lab stages as a series of short balance checks (mode = 'checks' | 'once' | 'off'); the stage's care is the checks' average care |
Config.Minigames (production.lua), np_admin Lab minigames |
| np_fishing | Opt-in arcade fights: the fight as reel (server replay), optionally the bite as strike; per player with /fishmode. The in-world fight stays the default |
Config.Minigames (loop.lua), np_admin Minigames (np_minigames) |
| np_vending | Cash-box break-in → lockpick (reinforced lock → drill); skimmer install → wires; smashing and the jam shake → power (off by default) |
Config.Minigames (19_minigames.lua), np_admin Minigames |
| np_gangs | Lester's trial: junction box → wires, the convoy's back doors → lockpick, camera feed / jammer / tracker → skillcheck, the photo → sway; graffiti spraying → sway and painting over → power (off by default) |
Config.Minigames (minigames.lua), np_admin np_minigames |
| np_inventory | The lockpick item → lockpick (difficulty by vehicle class); repair kit and spare tire → torque (off by default). np_inventory is also np_minigames' first-choice item bridge (DegradeItem) |
Config.Minigames, np_admin Minigames |
| np_fuel | A pump out of order after a nozzle drive-off: the station's owner and staff fit a new hose early with torque (who, jobs, failMinutes) |
Config.Minigames.repair, np_admin Minigames |
| np_environmental | Clean-up tasks through profiles + receipts: cut_trunk → drill, shut_valve / cap_leak / secure_line → torque, fix_box → wires (connect), fix_fence / compact → power, seal_barrel → skillcheck, neutralise / pump_out → balance; open_case, open_box, treat_worker, check_pilot off by default |
Config.Minigames (minigames.lua) |
| np_manufacturing | Production job steps: fit → torque, wrap → balance (trim); strip → power and inspect → skillcheck off by default |
minigames in shared/config.lua, np_admin Minigames |
| np_tattoos | Self-inking with a kit → sway, the score sets the opacity (prison ink on, henna off); onFail = 'faded' | 'botched' |
Config.Minigames, np_admin Minigames |
| np_npchandler / np_prophandler | Generic, optional interact.minigame on server NPCs and props (a profile per NPC / prop, redeemInteraction(src, id, receipt)); np_prophandler doors: pick the lock to unlock (others = true lets non-members pick), event np_prophandler:doorMinigame |
minigames in their config |
| np_doors | Every breach (hard dependency, np_doors has no minigame code of its own): lockpick → lockpick, police ram → ram (skillcheck while GetGames() has no ram), thermite → thermite, hack → hexhack / wires, keypad brute force → crack, drill → drill, multi-step profiles → Chain. Tools through opts.item |
The door's crime profile (crime.methods), Config.Breach |
| np_shops | The safe's lockpick method → lockpick on hard (or crack, drill, pattern, wires); register and display cases optionally skillcheck / power (default: the hold) |
Config.Robbery.minigames, np_admin Robbery |
Coexistence: golf, darts and pool ​
np_golf, np_darts and
np_billiards keep their own swing, throw and stroke (np_minigames'
swing, putt, sway and stroke are ports of them). They register a beforeStart hook so a game another
resource starts for a player mid-shot is refused (reason = 'busy'), or let through with the shot clock held
(whilePlaying = 'allow', per turn or for the whole round / match, with an allowFrom list). Their own aim input
pauses while any np_minigames game is open.
Planned and not integrated ​
- np_hunting and np_farming (concepts) plan their skill moments on np_minigames: the scope shot as
swayinmode = 'scope', field dressing asskillcheck, the blood trail assweep; farming harvest asskillcheck, chopping aspower, the press, churn and oven asbalance, the mill astorque. - No integration where nothing fits: np_payments (checkout only), np_net (metrics only) and np_identification
(forging is a bought service, exams are quizzes). The
sweepgame is meant for a metal-scanner resource.
Behaviour around the siblings ​
- The phone is never usable during a game. It is blocked with the reason
minigame(calls and messages are refused, callers get unreachable) and put away if it was open. Practice runs started from the Arcade app close the phone first and waitConfig.Phone.playDelayMsbefore the game takes focus. - The HUD steps aside. Only the zones under the card are claimed, so status tiles and the minimap stay visible. np_hud drops the claims by itself if np_minigames stops.
- Menus close. A radial or context menu that was open when a game starts is closed; the Arcade radial item is only there while the arcade is enabled.