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).
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/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…
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-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 load —
TaskPlayAnimno-ops if the dict is not loaded, so tags apply with no animation; alwaysRequestAnimDict+ aHasAnimDictLoadedwait loop. - One-sided net event —
medical:triage:showon only one side desyncs the scene after a re-tag; both sides useRegisterNetEvent+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 toESX.GetPlayerFromId(src).job.name == 'ambulance'. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); checkPlayer.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.