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.
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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…
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.
- 60 prompts + syntax-validated reference Lua
- Lifetime access — pay once
- All 510 prompts — the full library
- Per-prompt profit/trend intelligence (CSV + playbook)
- Lifetime free updates — new niches as the market moves
$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 load —
TaskPlayAnimno-ops if the dict is not loaded; alwaysRequestAnimDict+ aHasAnimDictLoadedwait loop before the take anim. - Unclamped effect — diminishing returns can go negative or runaway; clamp the effect
>= 0and 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(); resolveQBCore.Functions.GetPlayer(src)and gate the item viaPlayer.Functions.GetItemByName. - QBox:
exports.qbx_core:GetPlayer(src)and consume the pill throughexports.ox_inventory:RemoveItem. - ESX: swap to
exports['es_extended']:getSharedObject()andESX.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.