vi/raiser
medical
medical, GTA 6 style illustration
Vaultintermediatemedical

Coroner & Morgue, Body Bags, Autopsy & Cause of Death

Body-bag, morgue cold-storage and autopsy flow that records a corpse's cause of death server-side and reveals it only when a coroner runs the autopsy.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~86 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 / morising
$900($250 to $3,500)

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

Effort vs return
intermediate2-4h

Description

A coroner workflow: bag a corpse, store it in numbered morgue cold-storage, then perform an autopsy that reveals the recorded cause of death. It bridges police, EMS and legal roleplay into a single flow, which is why servers buy it, the cause of death is hidden until the autopsy, creating real investigative roleplay across multiple jobs.

Prompt Template

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

🔒 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/09-coroner-morgue-autopsy.lua. It stores…

🔒 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

  • Cause of death leaked at bagging, sending cod to the client immediately defeats the investigation. It must only be revealed inside the autopsy server handler.
  • Client-generated body IDs, two coroners collide on the same slot. The id must be a server-incremented counter.
  • Round-trip via TriggerEvent, the autopsy reveal never returns without RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Never send the cause of death to a client until the autopsy completes. Store it only in the server's bodies table, generate bodyId from a server-side counter, and reveal cod exclusively inside the medical:morgue:autopsy handler via TriggerClientEvent to the coroner."

Framework Integration

  • ESX: gate the coroner actions behind xPlayer.job.name == 'ambulance' (or a dedicated coroner job) resolved through exports["es_extended"]:getSharedObject().
  • QBCore: persist bodies in a morgue_bodies table via oxmysql and check the player's job with QBCore.Functions.GetPlayer(src).PlayerData.job.name.
  • QBox: use exports.qbx_core:GetPlayer(src) for the job gate and pair the autopsy result with ox_lib context menus for the morgue UI.

Profit Potential

$250-$3500/mo on Tebex (expected ~$900), priced inside the $50-389 script band against the demand-signal corpus tebex corpus (median ~$11.85K/mo, ); a rising cross-job module with defensible synergy.

Trend Signal

rising, strategy: Coroner/morgue bridges PD+EMS+legal jobs; cross-job synergy is defensible per matrix and absent from basic jobs.

Sales Angle

Position as the module that connects three jobs, PD investigates, EMS bags, legal uses the autopsy. Recommended Tebex price $229.

Difficulty & Ship Time

intermediate · ships in 2-4h.