opensource/client/client.lua
Handles zones, drawtext, evidence, stress, and the minigame callback. Edit minigames in theprojectx-casinoheist-k4mb1:client:Minigames callback.
Minigame Callback
Each step name is passed asStep. Replace the export inside the matching elseif, or return true to skip a step.
Return
true from any branch to skip that minigame (for testing or custom automation).Default minigame assignments
Step names match entries in
config/config.lua (for example Config.CasinoSteps).
opensource/server/server.lua
Dispatch, items, money, logging, admin reset command, and hooks.Hooks
SuccessfulStep(source, step)
SuccessfulStep(source, step)
Called when a player completes a robbery step. Use for XP, logging, or custom rewards.
FailedStep(source, step)
FailedStep(source, step)
Called when a player fails a step. Use for penalties or item removal.
InitialCheck(source, Interaction)
InitialCheck(source, Interaction)
Called before the heist can start. Return
false to block the player.RobberyResetHook()
RobberyResetHook()
Called when the heist resets (timer, admin command, or export).
CheckPerms from the bridge:
