gta6/prompts
medical
Vaultintermediatemedical

Bleed-Out Last Stand — Downed State & Death Timer

ESX/QB downed last-stand with crawl, call-for-help, an accept-death countdown and a server-owned bleed timer that respawns the player with residual injury when it expires.

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
~96 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

A bleed-out last-stand for ESX or QB servers: when downed the player drops to a crawl, can call for help or accept death, and a server-owned bleed timer counts to respawn-with-residual-injury if no medic arrives. Servers sell this because the downed death-flow is the universal backbone of every serious ambulance job and the reason EMS gets called at all.

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/medical/06-bleedout-laststand-timer.lua. It implements a server-side per-player bleed countdown, a looped downed anim with disabled controls,…

🔒 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-trusted timer — Claude counts down and revives locally; keep the bleed timer and revive server-side keyed by source.
  • Anim before loadTaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • One-sided net event — defining laststand:revived on only one side means a medic revive never lands; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Keep stands[src] = authoritative on the server, decrement on a 1s server loop, fire laststand:revived(true) at zero, and only the server-side laststand:revive(targetId) medic path may clear the state with residual = false."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); gate the medic revive on xPlayer.job.name == 'ambulance'.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); resolve with QBCore.Functions.GetPlayer(src) and broadcast dispatch via your ps-dispatch/qb-dispatch export.
  • QBox: use exports.qbx_core:GetPlayer(src) and the same job gate on the revive path.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), boosted for a hot, ubiquitous death-flow niche.

Trend Signal

🔥 hot — corpus: Downed/last-stand bleedout is the proven, ubiquitous pattern in every top ambulance job; deeper than basic ems-revive; hot recurring demand.

Sales Angle

Position as the must-have death-flow every RP server uses to replace instant-respawn — the call-for-help + accept-death loop is the core EMS hook. Recommended Tebex price $299.

Difficulty & Ship Time

intermediate · ships in 1 day.