gta6/prompts
medical
Vaultbeginnermedical

Vital-Signs Monitor — Live ECG / BP / SpO2 Patient Screen

ESX/QB clinical monitor that draws a live ECG/BP/SpO2 screen per patient while the server owns and drifts the authoritative vitals.

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

Description

A beginner-friendly live vital-signs monitor for ESX or QB servers: a per-patient screen renders heart rate, blood pressure, SpO2 and a scrolling ECG waveform that the server keeps drifting inside clinical bounds. Servers buy it because it is the small detail that makes a trauma bay feel like a real hospital instead of a respawn point.

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/13-vital-signs-monitor.lua. It implements a server-owned patientVitals table that drifts within clinical bounds, a client render loop gated…

🔒 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-computed vitals — each client invents its own numbers; keep the vitals table server-side keyed by source and push it on every drift tick.
  • Draw before sync — the ECG thread divides by a zero heart-rate before the first sync; gate the draw loop on a monitoring flag set only after a server sync.
  • One-sided net event — defining medical:monitor:sync on only one side freezes the screen on restart; both sides use RegisterNetEvent + AddEventHandler.

Corrective re-prompt: "Move all vital generation into server.lua keyed by server id, drift the values on a server timer, and only ever DrawText on the client after the first medical:monitor:sync has set the monitoring flag — never compute hr/bp on the client."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); resolve identity via ESX.GetPlayerFromId(src) to gate the monitor to on-duty medics.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); check Player.PlayerData.job.name == 'ambulance' before attaching.
  • QBox: use exports.qbx_core:GetPlayer(src) and the same job check.

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 UI-complement niche.

Trend Signal

stable — inferred: Clinical ECG/BP/SpO2 monitor is a UI niche complementing wound models; under-served as a standalone screen.

Sales Angle

Position as the screen that makes a hospital bay feel real — a cheap, fast add-on that pairs with any wound or downed-state model. Recommended Tebex price $89.

Difficulty & Ship Time

beginner · ships in 2-4h.