gta6/prompts
heists
Vaultbeginnerheists

Alarm Defuse — Color-Coded Wire Cut

ESX alarm-defuse component where the player cuts a color-coded wire and the server owns the correct wire and the success/dispatch outcome.

NON-TESTÉ — the reference Lua is syntax-validated, not run in a live FiveM server. Adapt and test on your own dev server before shipping.
Est. Lua
~78 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A working ESX alarm-defuse component: a triggered alarm panel where the player presses E to cut one of four color-coded wires before dispatch responds. The correct wire and the defuse/dispatch outcome are decided on the server, making this a clean, reusable building block heist packs bolt onto any location.

Prompt Template

You are writing a FiveM resource for esextended (stable, exports getSharedObject).

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Expected Output

The reference Lua lives at content/expected-outputs/heists/25-alarm-wirecut-defuse.lua. It implements the proximity wire-cut anim, a server-rolled correct wire stored per source, and a…

🔒 Eyes-only — locked prompt body

The full prompt template and its reference Lua are part of a one-time pack. Pick your depth — both are lifetime access, no subscription, ever.

Core$49one-time
  • 60 prompts + syntax-validated reference Lua
  • Lifetime access — pay once
Most Popular · Best Value
Vault$199one-time
  • All 510 prompts — the full library
  • Per-prompt profit/trend intelligence (CSV + playbook)
  • Lifetime free updates — new niches as the market moves
Get the Vault — $199

$49 for 60 · $199 for all 510 + intelligence — one-time, no subscription.

Known Failure Modes & Corrective Prompt

  • Client-known answer — Claude rolls and checks the correct wire client-side, so it is always readable. Roll and compare on the server only.
  • Anim before loadTaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + while not HasAnimDictLoaded(dict) do Wait(0) end.
  • One-sided net event — defining alarm:result on only one side breaks the round-trip; both sides use RegisterNetEvent + AddEventHandler.
  • No reset — failing to clear the per-source wire lets a retry reuse the same answer; clear state after each attempt.

Corrective re-prompt: "Move the correct-wire roll and the comparison entirely to the server. The client only sends the chosen color and renders the result event. Never send the correct wire to the client, and clear the per-source state after each attempt."

Framework Integration

  • ESX: as written — getSharedObject(), ESX.GetPlayerFromId(src), xPlayer.addMoney([REWARD]).
  • QBCore: swap to exports['qb-core']:GetCoreObject(), QBCore.Functions.GetPlayer(src) and Player.Functions.AddMoney('cash', [REWARD], 'alarm-defuse').
  • QBox: use exports.qbx_core:GetPlayer(src) then player.Functions.AddMoney('cash', [REWARD]); the server-roll logic is identical.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] priced inside the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo); a stable, reusable-component niche.

Trend Signal

stable — corpus: ox_lib minigame ecosystem active (corpus); alarm-defuse is a steady, reusable component.

Sales Angle

The drop-in alarm-defuse component every heist server reuses — a clean color-coded wire cut with server-owned answers, easy to bolt onto any location. Recommended Tebex price $89.

Difficulty & Ship Time

beginner · ships in 2-3h.