gta6/prompts
medical
Vaultadvancedmedical

EMS Computer-Aided Dispatch — Call Queue & Unit Assignment

ESX/QB EMS dispatch console with a priority call queue, map blips and unit assignment — the queue, ids and assignments all 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
~97 loc
Claude
Claude Opus 4.x / Sonnet 4.x
Validation
syntax-validated
Updated
2026-06-25

Description

An advanced EMS computer-aided dispatch console for ESX or QB servers: incoming calls form a priority queue with map blips, and medics see unit status and claim assignments — all of it owned server-side so no two units fight over the same call. Servers sell it as the EMS analogue of the police MDT, the missing command layer that lets a medical department actually run like one.

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/16-ems-cad-dispatch.lua. It implements a server-owned calls table with incrementing ids, a priority-sorted broadcast, an assign path that…

🔒 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-owned queue — two medics each believe they own a call; keep the queue, call ids and assignedTo server-side and refuse a second claim.
  • Blip leak — rebuilding blips without removing the prior set leaks one per sync; clear the old blip array before drawing the new queue.
  • One-sided net eventmedical:cad:sync on only one side freezes the console on restart; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Make server.lua the single owner of the calls table and the nextId counter, reject medical:cad:assign when call.assignedTo is already set, only allow medical:cad:close from the assigned source, and in renderBlips RemoveBlip every entry of the previous array before adding the new queue."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); restrict create/assign to ESX.GetPlayerFromId(src).job.name == 'ambulance'.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); gate on Player.PlayerData.job.name == 'ambulance' and onduty.
  • QBox: use exports.qbx_core:GetPlayer(src) and the same on-duty job gate.

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 MDT-class niche.

Trend Signal

🔥 hot — corpus: Directly maps to ox_mdt (named corpus exemplar) re-scoped for EMS dispatch; top-tier proven demand on Cfx/Tebex.

Sales Angle

Position as the EMS dispatch console serious medical servers lack — it re-scopes the proven, top-selling MDT pattern for ambulance work, a premium command layer above any ambulance job. Recommended Tebex price $359.

Difficulty & Ship Time

advanced · ships in 1-2 days.