Skip to main content
Most core logic runs through the bridge and encrypted scripts. Open source files let you customize minigames, hooks, and integrations without editing escrow.

opensource/client/client.lua

Handles zones, drawtext, evidence, stress, and the minigame callback. Edit minigames in the projectx-casinoheist-k4mb1:client:Minigames callback.

Minigame Callback

Each step name is passed as Step. 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

Called when a player completes a robbery step. Use for XP, logging, or custom rewards.
Called when a player fails a step. Use for penalties or item removal.
Called before the heist can start. Return false to block the player.
Called when the heist resets (timer, admin command, or export).
Admin command permissions use CheckPerms from the bridge: