gta6/prompts
medical
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.

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

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