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 theprojectx-mazebankrobbery-k4mb1:client:Minigames callback.
Minigame Callback
Each robbery step triggers the callback with the step name. Replace the export call inside the matchingelseif 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.opensource/server/server.lua
This file handles dispatch, item/money functions, logging, admin reset command registration, and server hooks for custom logic.Hooks
SuccessfulStep(source, step)
SuccessfulStep(source, step)
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.FailedStep(source, step)
FailedStep(source, step)
Called whenever a player fails a robbery step. Use this to remove XP, items, or apply penalties.
InitialCheck(source, Interaction)
InitialCheck(source, Interaction)
Called before a player can start the robbery. Return
false to block them.RobberyResetHook()
RobberyResetHook()
Called whenever the heist resets. Use this to update a scoreboard, trigger an external event, or notify players.
