gta6/prompts
medical
Vaultadvancedmedical

Contagion — Disease Spread, Epidemic & Quarantine

QB/QBox contagion system where a server-owned infection registry spreads a disease by proximity, advances staged symptoms over time, and lets an admin declare a quarantine zone as a server-wide epidemic event.

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

Description

A contagion system for QB/QBox servers: a server-owned infection registry spreads a disease by proximity, advances each carrier through staged symptoms over time, and lets an admin declare a quarantine zone as a server-wide epidemic event. Servers buy it because it manufactures a whole roleplay arc — an outbreak, symptomatic players, and a quarantine the EMS and police RP around.

Prompt Template

You are writing a FiveM resource for qb-core.

🔒 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/24-contagion-epidemic-quarantine.lua. It implements a server-owned infection registry with server-computed proximity spread, a staged…

🔒 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 infection — Claude lets the client pick targets and its own stage; keep infected[src], the proximity check and the stage clock server-side.
  • Anim before load — the cough/collapse no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop.
  • Client nearby list — spread that trusts a client-sent nearby list infects across the map; compute distance from server-known coords and gate by radius.

Corrective re-prompt: "Keep infected[src] = and coords[src] on the server; in the spread loop find targets within RADIUS using the server coords with a chance roll, and progress the stage only when now - since exceeds STAGES[stage].interval."

Framework Integration

  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); gate contagion:quarantine with QBCore.Functions.GetPlayer(src).PlayerData.permission or IsPlayerAceAllowed.
  • QBox: exports.qbx_core:GetPlayer(src) and use qbx_core admin checks for the quarantine trigger.
  • ESX: swap to exports['es_extended']:getSharedObject() / ESX.GetPlayerFromId(src); the infection registry and loops are unchanged.

Profit Potential

$300–$4200/mo on Tebex (expected ~$1100). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set high for a rising, event-driven novelty niche.

Trend Signal

rising — inferred: Disease-spread/quarantine is an event-driven novelty; rising on roleplay-event-heavy servers seeking server-wide arcs.

Sales Angle

Position as the server-wide event engine: proximity spread, staged symptoms and an admin quarantine zone that manufactures a full epidemic arc. Recommended Tebex price $249.

Difficulty & Ship Time

advanced · ships in 2-3 days.