opensource/client/client.lua
This file handles notifications, zones, evidence, stress, interaction targets, and the minigame callback. If you want to change the minigames used for each step, this is the file to edit.Minigame Callback
Each approach or ATM breakdown step triggers theprojectx-atmrobbery: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. This is useful for testing or for steps you want to make automatic.Client Hook
Robbed()
Robbed()
Called on the client after successfully pulling an ATM from the wall (rope approach). Use this for local effects or client-side XP/UI.
opensource/server/server.lua
This file handles dispatch, items, money, logging, police checks, and exposes hooks you can use to run custom logic at specific points.Hooks
RobbedServer(source, Approach)
RobbedServer(source, Approach)
Called after the ATM is looted and the approach is finished.
SuccessfulStep(source, step)
SuccessfulStep(source, step)
Called when a player successfully completes a placed-ATM breakdown step (
AtmStep1–AtmStep4). By default this awards Rope approach XP when SkillSystem is enabled.FailedStep(source, step)
FailedStep(source, step)
Called whenever a player fails a breakdown step.
SuccessfulApproach(source, approach)
SuccessfulApproach(source, approach)
Called when a player successfully completes an approach (e.g.
Drill, C4, Hacking).FailedApproach(source, approach)
FailedApproach(source, approach)
Called whenever a player fails an approach.
