Scorpio Development
Scripts/scorpio_bombs
scorpio_bombs · v1.0.1

Bomb Defusal

One player sees the bomb. The other holds the manual. Neither can defuse it alone.

Front of the bomb with six modules
Defuse view — timer and four modules01 / 03
Overview

How it plays

Cooperative bomb defusal for roleplay servers. A planted bomb counts down in the world, beeps and lights up. The defuser works on a 3D model of the case, the expert reads rules they can only apply through the defuser's description.

  1. PlantUse the bomb item, set the timer and place a transparent preview anywhere within reach.
  2. ReportA witness may call it in. Your dispatch receives an area, not the exact position.
  3. DescribeThe defuser opens the case with a defusal kit and describes modules, serial number, batteries and ports.
  4. ReadThe expert opens the manual on the edition printed on the case and finds the rule that applies.
  5. ActEvery mistake is a strike and speeds the timer up. Three strikes or zero on the clock and it goes off.
7 module types

Modules

Rules are generated from the edition printed on the case. Four editions ship by default, add a string to the config and you have a new rule set that nobody has memorised yet.

Wires3–6 wires. Which one to cut depends on colours, serial number, batteries, indicators and ports.
ButtonTap or hold. A held button lights a strip, release on the right digit of the timer.
SymbolsFour symbols, find the column that contains all of them and press in its order.
SimonColour sequence with a mapping that changes with vowels in the serial and the strike count.
RadioA word blinks in Morse code. Tune the matching frequency and transmit.
PasswordFive rolling letter columns, exactly one combination forms a listed word.
MazeOnly markers are visible on the case. The walls exist only in the manual.
Compatibility

Frameworks and inventories

Frameworkox_inventoryqb-inventory
ESX LegacyTested—
QBCoreSupportedTested
QboxSupported—

Tested — verified in game on a clean recipe server. Supported — covered by the bridge.

Escrow

What you can edit

Open

  • shared/config.lua
  • bridge/client.lua
  • bridge/server.lua
  • bridge/shared.lua
  • custom/client.lua
  • custom/server.lua
  • locales/*.json

Encrypted

  • client/main.lua
  • server/main.lua
  • shared/rules.lua

Cfx Asset Escrow encrypts Lua only. The NUI in html/ ships readable, like in every escrowed resource.

shared/config.lua

Config excerpt

Config.Editions = { 'K-7', 'M-3', 'R-9', 'V-2' }

Config.Bomb = {
    minMinutes = 3,
    maxMinutes = 15,
    maxStrikes = 3,
    strikeSpeedup = 0.25,
    modules = { 'wires', 'button', 'keypad', 'simon', 'morse', 'password', 'maze' },
    minModules = 2,
    maxModules = 4,
    maxPerPlayer = 2,
}

Config.PlantReport = {
    enabled = true,
    chance  = 1.0,
    delay   = { 10, 20 },
    radius  = 120.0,
}