Minigames are short tasks a player solves in a window. They are used by gig steps, crafting recipes, breaking free from restraints, prison work, the evidence lab and other resources through an export. The server makes every task, keeps the answer and checks it with the time. The client sends only moves or the answer.
Types
| Type | What the player does | Server checks |
|---|---|---|
wiring |
Drags each cable to the terminal with the same colour or label | The full mapping |
circuit |
Turns tiles until one line runs from the arrow to the target. Always solvable | The flow over the rotations |
sequence |
Watches pads light up and repeats the order | The order, not faster than the show |
faulty |
Marks readings outside the allowed range | The marked lines |
command |
Puts blocks into slots (action, target, mode, delay) | The block in every slot |
lockpick |
Moves the pick and turns, the lock turns further near the sweet spot | Every try live, the sweet spot stays on the server |
timing |
Hits while the needle is in the zone | Every hit against the speed and zone the server picked |
pairs |
Flips cards and finds pairs | Every flip live, the cards stay on the server |
sorting |
Puts items into groups | The group of every item |
pressure |
Holds the needle in the zone with the pump | Replays the presses with the same drift |
keypad |
Guesses a code of different digits, colours show right digits in the right or wrong place | Every guess live, the code stays on the server |
dial |
Turns a safe dial in the shown direction and stops on each number | Every stop live, the combination stays on the server |
tune |
Turns frequency and phase knobs until the signal is clean, then holds still | Every probe live, the signal stays on the server |
grill |
Flips each patty in the green zone, serves it when the second side is done | Every flip and serve against the cooking times the server picked |
pour |
Holds the tap and stops near the fill line, the foam settles after | Every pour against the target and foam the server picked |
torque |
Tightens wheel nuts across the hub in the right order to the green band | The nut order and every pull against the target torque |
diagnose |
Reads engine gauges and picks the faulty part | Every pick, the fault stays on the server |
Every type has easy, medium and hard presets, a how to play screen, mouse and keyboard controls and texts in en, cs and sk. Each attempt has a token, a minimum and maximum time and an expiry. Results that cannot happen go to the exploit log.
Creator
/jobadmin, Minigames lists the built in types with their presets and your own minigames. Your own minigame has a name, an id, an icon and 1 to 4 stages played one after another. Each stage picks a type, a difficulty (or the one of the place that uses it), optional fixed values, a title, a how to play text and content: cable names and colours, sorting groups and items, the name, unit and range of readings, device names for commands.
Try runs it on the server like in game. Copy JSON and Import move minigames between servers. They are stored in jcks_job_minigames. The page opens for staff with jobs.gigs.
Where a minigame is picked
| Place | Setting |
|---|---|
| Gig step | Step editor, also the fallback of device steps |
| Crafting recipe | Job editor, location, recipe. A failed game keeps the ingredients |
| Breaking free | Config.Restraints.struggleGame (default 'timing') and struggleGameDifficulty (default 'hard'), see Field tools |
| Prison work | game and difficulty of every entry in Config.Jail.work.tasks |
| Lab analysis | Config.Forensics.labMinigame (default 'faulty') and labDifficulty (default 'medium') |
A gig step with item rewards cannot use the bridge skill check, it switches to timing on save. With Config.Gigs.verifySkillSteps = true every plain skill check of a gig is played as timing.
Export
Server side. The call waits until the player finishes, closes the window or the time runs out, so call it from a thread. One player has one minigame at a time.
local passed, reason = exports.jcks_jobs:StartMinigame(source, 'lockpick', { difficulty = 'hard', label = 'Open the safe' })
local passed2 = exports.jcks_jobs:StartMinigame(source, 'custom:fuse_box')
local passed3 = exports.jcks_jobs:StartMinigame(source, {
label = 'Hotwire',
stages = {
{ type = 'wiring', wires = { { label = 'Ignition', color = '#E5484D' }, { label = 'Battery', color = '#3E7BFA' }, { label = 'Starter', color = '#F2C94C' } } },
{ type = 'timing', difficulty = 'hard' },
},
})reason is passed, wrong, timeout, expired, cancelled, broken, mistakes, burned, spilled, invalid, replaced, dropped or an error key.
exports.jcks_jobs:GetMinigames() lists your own minigames with id, label, icon and types.