GIG ScriptsGIG Scripts

Shop Robbery

Drill the safe in any of 14 stores, with a police dispatch when it starts.

Dependencies

  • ox_lib
  • gig-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)
server.cfg
ensure gig-heistAssets
ensure gig-shopRobbery

Items

ItemPurpose
gig_drillrequired to start, consumed by default

The icon is in the resource's icons/ folder.

ox_inventory/data/items.lua
['gig_drill'] = {
    label = 'Drill',
    weight = 3000,
    stack = false,
    close = true,
    description = 'Chews through safe doors, slowly.',
},
qb-core/shared/items.lua
['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 = true on 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.cash and reward.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, or false.
  • cfg.requiredLEOCount and cfg.leoJobs: how many on-duty officers must be online. 0 disables the check.
  • cfg.minigame: true runs an ox_lib skill check before the drill is placed. The check itself is in bridge/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.

On this page