vi/raiser
medical
medical, GTA 6 style illustration
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.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~118 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
$1,100($300 to $4,200)

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

Effort vs return
advanced2-3 days

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), within the $50-389 script band against a corpus of comparable Tebex sellers (median ~$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.