Skip to main content
Most of the core logic in this resource is handled by the bridge. The open source files are provided so you can customize minigames, add hooks for custom systems, and extend the script without touching escrow.

opensource/client/client.lua

This file handles zone creation, drawtext, evidence, stress, and most importantly, the minigame function. If you want to change the minigames used for each step, this is the only file you need to edit.

Minigame Function

Each robbery step calls Minigame(Step) through the projectx-storerobbery-tstudio:client:Minigames callback. You can swap any minigame by replacing the export call inside the matching elseif block.
You can return true unconditionally inside any step block to skip that minigame entirely. This can be useful for testing or for steps you want to make automatic.
The default minigames per step are:
The TStudio keypads, laptop screen, office computer screen, electrical box, and sticky note use built-in UIs. Their difficulty is tuned in Config.Minigames in config/config.lua, not in this file.

opensource/server/server.lua

This file handles dispatch, item/money functions, logging, the admin command, and exposes several hooks you can use to run custom logic at specific points in the robbery.

Hooks

Called whenever a player successfully completes a robbery step. Use this to award XP, trigger events, or log individual step completions.
Step names match the interaction keys defined in Config.Stores (e.g. Fusebox, Clerk, Keypad1, Gate, Laptop, Computer, Safe).
Called whenever a player fails a robbery step, including being tased at the stock cage gate. Use this to remove XP, items, or apply penalties.
Called before a player can start a robbery at a location. Return false to block them.
Called whenever a store location resets. Use this to update a scoreboard, trigger an external event, or notify players.