opensource/client/client.lua
This file handles zone creation, drawtext, evidence, stress, and most importantly, the minigame callback. If you want to change the minigames used for each step, this is the only file you need to edit.Minigame Callback
Each robbery step triggers theprojectx-ammunationrobbery-tstudio:client:Minigames callback with the step name. 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.opensource/server/server.lua
This file handles dispatch, item/money functions, logging, and exposes several hooks you can use to run custom logic at specific points in the robbery.Hooks
SuccessfulStep(source, location, step)
SuccessfulStep(source, location, step)
Called whenever a player successfully completes a robbery step.
FailedStep(source, location, step)
FailedStep(source, location, step)
Called whenever a player fails a robbery step.
InitialCheck(src, Location, Interaction)
InitialCheck(src, Location, Interaction)
Called before a player can start a robbery at a location. Return
false to block them.RobberyResetHook(location)
RobberyResetHook(location)
Called whenever a location resets.
