vi/raiser
medical
medical, GTA 6 style illustration
Vaultintermediatemedical

CPR & Defibrillator, ROSC Revive Minigame

Rhythm-based chest-compression plus charge-and-shock defibrillator minigame that restores a pulse (ROSC) on a downed player, with all revive authority on the server.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~89 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25
Unlock price
$199Vault

Unlock all 510 prompts

Profit potential / mohot
$1,500($400 to $6,000)

$50-389 script band, sized for a hot niche; top sellers clear around $11.85K/mo.

Effort vs return
intermediate2-4h

Description

A two-phase EMS revive: a rhythm chest-compression minigame followed by a charge-and-shock defibrillator step that restores spontaneous circulation (ROSC) on a downed player. It is the highest-traffic medical interaction on any roleplay server, so a server sells it to replace the flat one-button revive with a tense, skill-based loop that keeps medics engaged.

Prompt Template

You are writing a FiveM resource for a roleplay server. Detect the framework…

🔒 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

See content/expected-outputs/medical/07-cpr-defib-revive-minigame.lua. It…

🔒 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-side revive, the patient is healed inside the client minigame, so any client can spoof a ROSC. The heal must be a server event guarded by the downed table.
  • Missing anim-load wait, RequestAnimDict without the HasAnimDictLoaded loop means the first compression plays nothing.
  • Round-trip via TriggerEvent, using TriggerEvent instead of RegisterNetEvent + AddEventHandler drops the compressions-done / shock messages at the network boundary.

Corrective re-prompt: "Move the actual revive out of the client. The patient may only be revived inside the server handler for medical:defib:shock, and only when downed[targetServerId] is true; the client must merely run the minigame and TriggerServerEvent the result. Confirm RequestAnimDict is followed by a while not HasAnimDictLoaded(dict) do Wait(0) end loop on every animation."

Framework Integration

  • ESX: resolve exports["es_extended"]:getSharedObject() and call xPlayer.triggerEvent or your revive export inside the medical:defib:shock server handler instead of the placeholder notify.
  • QBCore: swap the revive apply for TriggerClientEvent('hospital:client:Revive', patient) or QBCore.Functions.GetPlayer(patient) health setters.
  • QBox: use exports.qbx_core:GetPlayer(src) and the qbx_medical revive export; the downed table maps cleanly onto qbx_medical's laststand state.

Profit Potential

$400-$6000/mo on Tebex (expected ~$1500), priced inside the $50-389 script band against the demand-signal corpus tebex corpus (median ~$11.85K/mo, ); a hot, core-loop EMS module sits in the upper half of its niche.

Trend Signal

🔥 hot, corpus: CPR+defib ROSC minigame ships in the dominant medical sellers (wasabi/codem-ambulancejob); core revive loop with high forum velocity.

Sales Angle

Position as the revive your medics actually feel, a paced, two-stage minigame that replaces the flat one-button revive. Recommended Tebex price $349.

Difficulty & Ship Time

intermediate · ships in 2-4h.