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 the minigame callback. To change which minigame runs for a step, edit the projectx-mazebankrobbery-k4mb1:client:Minigames callback.

Minigame Callback

Each robbery step triggers the callback with the step name. Replace the export call inside the matching elseif block to swap minigames.
You can return true unconditionally inside any step block to skip that minigame entirely. This is useful for testing or for steps you want to make automatic.For OfficeDoorKeypad, the bridge MinigameCheck may reference SN-Hacking, but the default implementation uses pure-minigames numberCounter — match your server.cfg ensures to the exports you actually call.
The default minigames per step are:

opensource/server/server.lua

This file handles dispatch, item/money functions, logging, admin reset command registration, and server hooks for custom logic.

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 keys in Config.MazeBankSteps inside config/config.lua.
Called whenever a player fails a robbery step. Use this to remove XP, items, or apply penalties.
Called before a player can start the robbery. Return false to block them.
Called whenever the heist resets. Use this to update a scoreboard, trigger an external event, or notify players.