gta6/prompts
medical
Vaultintermediatemedical

Toxicology — Poisoning & Antidote System

QB/QBox poison layer where a server-owned toxin state (ingested, snakebite, gas) ticks damage on a timer and is cancelled only when the player uses the matching antidote item for that toxin type.

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

Description

A toxicology layer for QB/QBox servers: a server-owned toxin state (ingested poison, snakebite venom, gas) ticks damage on a timer and is cancelled only when the player uses the matching antidote for that toxin type. Servers buy it for survival and event RP — poisoning becomes a real threat that demands the right antidote, not a generic heal.

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/23-toxicology-poison-antidote.lua. It implements a server-owned toxin state ticking damage on a timer, escalating poisoned screen FX, and…

🔒 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-trusted tick — Claude runs the tickdown locally; keep poison[src], the tick and the damage server-side keyed by source.
  • Anim before loadTaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop before the antidote anim.
  • Wrong antidote cures — without a type match any antidote cancels any poison; the server must reject antidote ~= TOXINS[type].antidote.

Corrective re-prompt: "Keep poison[src] = authoritative with a server tick loop applying TOXINS[type].dmg; in tox:cure reject the cure whenever the passed antidote item does not equal TOXINS[type].antidote."

Framework Integration

  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); resolve QBCore.Functions.GetPlayer(src) and consume the antidote via Player.Functions.RemoveItem.
  • QBox: exports.qbx_core:GetPlayer(src) and remove the antidote through exports.ox_inventory:RemoveItem.
  • ESX: swap to exports['es_extended']:getSharedObject() / ESX.GetPlayerFromId(src) if porting; the toxin tables are unchanged.

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, under-served survival-realism niche.

Trend Signal

stable — inferred: Poison/venom + antidote is a niche realism layer (snakebite/gas events); steady, under-served interest.

Sales Angle

Position as the survival-realism layer for snakebite, gas and poison events — each needs its specific antidote, not a generic medkit. Recommended Tebex price $119.

Difficulty & Ship Time

intermediate · ships in 1 day.