Skip to main content
Most of the core logic in this resource is handled by the bridge. The open source files are provided so you can customize minigames, add hooks for custom systems, and extend the script without touching escrow.

opensource/client/client.lua

This file handles zone creation, drawtext, evidence, stress, and the minigame callback.

Minigame Callback

Each robbery step triggers the projectx-bobcatheist-gabz:client:Minigames callback with the step name.
lib.callback.register('projectx-bobcatheist-gabz:client:Minigames', function(Step)
    local p = promise.new()
    if Step == "C4Entrance" then
        if not exports['projectx-bridge']:MinigameCheck("lightsout") then p:resolve(false) return Citizen.Await(p) end
        local success = exports['lightsout']:StartLightsOut(4, 20)
        p:resolve(success)
    elseif Step == "EntranceKeypad" then
        if not exports['projectx-bridge']:MinigameCheck("SN-Hacking") then p:resolve(false) return Citizen.Await(p) end
        local success = exports['SN-Hacking']:Thermite(7, 5, 10000, 2, 2, 3000)
        p:resolve(success)
    elseif Step == "MainKeypad" then
        if not exports['projectx-bridge']:MinigameCheck("SN-Hacking") then p:resolve(false) return Citizen.Await(p) end
        local success = exports['SN-Hacking']:MemoryCards('hard')
        p:resolve(success)
    end
    return Citizen.Await(p)
end)
You can return true unconditionally inside any step block to skip that minigame entirely.
The default minigames per step are:
StepMinigame ResourceFunction
C4EntrancelightsoutStartLightsOut
EntranceKeypadSN-HackingThermite
C4SecuritylightsoutStartLightsOut
SecurityFingerprintutk_fingerprintStart (event)
SearchDeskox_libskillCheck
SearchBelongingsox_libskillCheck
ComputerDeskSN-HackingThermite
SmokeHallwaylightsoutStartLightsOut
MainKeypadSN-HackingMemoryCards
Fuseboxox_libskillCheck
SurveillanceRoomKeypadSN-HackingThermite
ComputerSN-HackingMemoryCards
C4VaultlightsoutStartLightsOut
VaultPanelSN-HackingColorPicker
Crateox_libskillCheck

opensource/server/server.lua

Hooks

Called whenever a player successfully completes a robbery step. Step names are listed in Config.BobcatSteps inside config/config.lua.
Called whenever a player fails a robbery step.
Called before a player can start the robbery. Return false to block them.
Called whenever the heist resets.
See the K4MB1 Bobcat Open Source page for full hook examples — the server hook structure is identical across Bobcat variants.