gta6/prompts
medical
Vaultbeginnermedical

Mass-Casualty Triage — Color-Tag Priority Sorting

ESX/QB START-style triage that lets a medic tag patients green/yellow/red/black with the authoritative priority and scene ordering owned server-side.

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

Description

A beginner mass-casualty triage system for ESX or QB servers: a medic tags each patient with a START color — red (immediate), yellow (delayed), green (minor), black (expectant) — and the server keeps the authoritative priority so the scene can be worked worst-first. Servers buy it because it turns a chaotic pile-up into a structured incident that rewards real EMS coordination.

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/15-mass-casualty-triage-tags.lua. It implements a server-owned PRIORITY map and tags table, a set round-trip that accepts only valid…

🔒 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-decided priority — a player self-tags green and jumps the queue; keep the color→priority map and tag table server-side and reject unknown colors.
  • Anim before loadTaskPlayAnim no-ops if the dict is not loaded, so tags apply with no animation; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • One-sided net eventmedical:triage:show on only one side desyncs the scene after a re-tag; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Validate the color against the server PRIORITY map and reject anything else, keep the tags table server-side keyed by server id, and have medical:triage:list rebuild and table.sort the scene by priority on the server before sending it to the requesting medic."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); gate tagging to ESX.GetPlayerFromId(src).job.name == 'ambulance'.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); check Player.PlayerData.job.name == 'ambulance' before honoring a set.
  • QBox: use exports.qbx_core:GetPlayer(src) and the same job gate.

Profit Potential

$150–$2000/mo on Tebex (expected ~$500). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a stable evergreen add-on niche.

Trend Signal

stable — inferred: Triage color-tags are a simple, evergreen mass-casualty add-on; steady niche demand, low novelty.

Sales Angle

Position as the add-on that turns a multi-car pile-up into a scene EMS must work methodically — cheap, fast, and a natural upsell beside a wound model. Recommended Tebex price $79.

Difficulty & Ship Time

beginner · ships in 2-4h.