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).
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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 load —
TaskPlayAnimno-ops if the dict is not loaded; alwaysRequestAnimDict+while not HasAnimDictLoaded(dict) do Wait(0) end. - One-sided net event — defining
alarm:resulton only one side breaks the round-trip; both sides useRegisterNetEvent+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)andPlayer.Functions.AddMoney('cash', [REWARD], 'alarm-defuse'). - QBox: use
exports.qbx_core:GetPlayer(src)thenplayer.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.