Shop Robbery
Drill the safe in any of 14 stores, with a police dispatch when it starts.
Dependencies
ox_libgig-heistAssets(safe and drill props, drilling animation)- Qbox, QB-Core or ESX
- ox_target or qb-target (
cfg.target) - A dispatch script, optional (see below)
ensure gig-heistAssets
ensure gig-shopRobberyItems
| Item | Purpose |
|---|---|
gig_drill | required to start, consumed by default |
The icon is in the resource's icons/ folder.
['gig_drill'] = {
label = 'Drill',
weight = 3000,
stack = false,
close = true,
description = 'Chews through safe doors, slowly.',
},['gig_drill'] = { name = 'gig_drill', label = 'Drill', weight = 3000, type = 'item', image = 'gig_drill.png', unique = true, useable = false, shouldClose = true, description = 'Chews through safe doors, slowly.' },The drill does not need to be usable. You place it through the target on the safe.
Config
Each entry in cfg.shops is one store. All 14 vanilla 24/7 and liquor stores are pre-filled with the safe positions. Per shop you set:
required.items,required.weapon,required.crouch: what the player needs to start.remove = trueon an item consumes it.drill.duration,placeDrillDuration,repairDuration,jamChance: how long the job takes and how often the drill jams. A jammed drill has to be repaired through the target before it continues.reward.cashandreward.items: fixed values or{ min, max }ranges.cooldown: seconds before the same store can be hit again.
Global keys:
cfg.personalCooldown: seconds before the same player can rob again, orfalse.cfg.requiredLEOCountandcfg.leoJobs: how many on-duty officers must be online.0disables the check.cfg.minigame:trueruns an ox_lib skill check before the drill is placed. The check itself is inbridge/client/minigame.lua, so you can swap in another minigame.
Dispatch
cfg.dispatch = 'auto' picks the first dispatch resource it finds. Supported: cd_dispatch, ps-dispatch, origen_police, lb-tablet, rcore_dispatch, redutzu-mdt, core_dispatch, qs-dispatch, tk_dispatch, cr-dispatchMDT, gfx-mdt, aty_dispatch, op-dispatch, emergencydispatch. Set the name to force one, or false to send nothing.
Each system lives in its own file under bridge/client/dispatch/. To add one that is not on the list, copy any of those files, change the resource name and the call, and add it to fxmanifest.lua before fallback.lua.
Webhook
cfg_sv.lua holds a Discord webhook. Completed robberies are posted there with the player, the store and the reward. Leave the placeholder URL in place to disable logging.
GIG Scripts