vi/raiser
medical
medical, GTA 6 style illustration
Vaultadvancedmedical

Addiction & Withdrawal, Substance Dependency Model

ESX/QB dependency model where a server-owned per-substance addiction meter builds tolerance on each use and, once a fix lapses, inflicts staged withdrawal debuffs until another fix or a completed rehab program clears it.

PRODUCTION-SHAPED, the reference Lua is validated and written framework-correct for ESX, QBCore, and QBox, ready to drop into your server.
Est. Lua
~116 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,000)

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

Effort vs return
advanced2-3 days

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).

🔒 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/22-addiction-withdrawal-model.lua. It implements a server-owned per-substance addiction meter with a fix window, staged withdrawal debuffs…

🔒 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 meter, Claude tracks addiction locally; keep addiction[src][sub], lastFix and 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 + a HasAnimDictLoaded wait 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 via xPlayer.setMeta or your DB layer on disconnect.
  • QBCore: exports['qb-core']:GetCoreObject(); store addiction in Player.Functions.SetMetaData('addiction', ...).
  • QBox: exports.qbx_core:GetPlayer(src) and persist through player.PlayerData.metadata writes.

Profit Potential

$300-$4000/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, 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.