gta6/prompts
medical
Vaultintermediatemedical

Medication & Dosage — Drug Effects & Overdose Risk

QB/QBox dose-tracking layer where a server-owned active-dose value per substance gives diminishing returns on each hit and flips to overdose damage once a per-substance threshold is crossed.

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

Description

A dose-tracking medication layer for QB/QBox servers: each substance carries a server-owned active-dose value that decays over time, every hit gives a diminishing effect, and crossing a per-substance overdose threshold flips the effect from heal/high to damage. Servers buy it because it makes drug-RP have real consequences — spamming pills stops being a free buff and becomes a risk.

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/21-medication-dosage-overdose.lua. It implements a server-owned per-substance dose with a decay tick, a clamped diminishing-returns effect…

🔒 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 dose — Claude tracks the dose locally; keep doses[src][substance], decay and threshold server-side so a player cannot dodge the overdose.
  • Anim before loadTaskPlayAnim no-ops if the dict is not loaded; always RequestAnimDict + a HasAnimDictLoaded wait loop before the take anim.
  • Unclamped effect — diminishing returns can go negative or runaway; clamp the effect >= 0 and the dose to sane bounds before applying.

Corrective re-prompt: "Keep doses[src][substance] authoritative with a server decay loop; on dose:take compute effect = base * base / (base + dose) clamped >= 0, and if dose >= threshold fire dose:overdose with damage instead of dose:effect."

Framework Integration

  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); resolve QBCore.Functions.GetPlayer(src) and gate the item via Player.Functions.GetItemByName.
  • QBox: exports.qbx_core:GetPlayer(src) and consume the pill through exports.ox_inventory:RemoveItem.
  • ESX: swap to exports['es_extended']:getSharedObject() and ESX.GetPlayerFromId(src) if porting; the dose tables stay identical.

Profit Potential

$250–$3500/mo on Tebex (expected ~$900). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a rising, rarely-modeled drug-realism niche.

Trend Signal

rising — inferred: Dose-tracking plus an overdose ceiling deepens drug-RP realism; rising, rarely modeled properly today.

Sales Angle

Position as the realism upgrade that punishes pill-spamming and gives drug-RP a real risk ceiling — pairs with any drug-sale system. Recommended Tebex price $169.

Difficulty & Ship Time

intermediate · ships in 1 day.