Description
A substance-dependency model for ESX or QB servers: each substance builds a server-owned addiction meter that raises tolerance on use, and once the last fix lapses the player drops through staged withdrawal debuffs until another fix or a server-timed rehab program clears it. Servers buy it because it turns drug sales into recurring demand and gives clinics a real rehab role — depth that bolts onto the existing drug economy.
Prompt Template
You are writing a FiveM resource for esextended (stable, exports getSharedObject).
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/22-addiction-withdrawal-model.lua. It implements a server-owned per-substance addiction meter with a fix window, staged withdrawal debuffs…
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-owned meter — Claude tracks addiction locally; keep
addiction[src][sub],lastFixand the rehab flag server-side so debuffs cannot be skipped. - Anim before load — the withdrawal shake/clipset no-ops if the dict is not loaded; always
RequestAnimDict+ aHasAnimDictLoadedwait loop. - Self-cured rehab — rehab granted client-side instant-cures; the server must own the rehab end time and clear addiction only when it elapses.
Corrective re-prompt: "Keep addiction[src][sub] = on the server; in the withdrawal loop fire addict:withdrawal with a stage derived from the meter when now - lastFix exceeds fixWindow, and only clear the meter when the server rehab end time is reached."
Framework Integration
- ESX:
local ESX = exports['es_extended']:getSharedObject(); persist the meter viaxPlayer.setMetaor your DB layer on disconnect. - QBCore:
exports['qb-core']:GetCoreObject(); store addiction inPlayer.Functions.SetMetaData('addiction', ...). - QBox:
exports.qbx_core:GetPlayer(src)and persist throughplayer.PlayerData.metadatawrites.
Profit Potential
$300–$4000/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, defensible cross-system niche.
Trend Signal
↗ rising — strategy: Addiction/withdrawal ties into the drug-economy lane; defensible cross-system depth per the matrix's compound axis.
Sales Angle
Position as the cross-system depth piece: drug sales become recurring demand and clinics gain a rehab job. Recommended Tebex price $229.
Difficulty & Ship Time
advanced · ships in 2-3 days.