gta6/prompts
drugs
Vaultintermediatedrugs

Addiction, Tolerance & Withdrawal System

ESX/QB/QBox per-player addiction meter with server-owned rising tolerance, withdrawal debuffs and craving-driven needs that decay over real time.

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

Description

An addiction system for ESX, QBCore or QBox: each player carries a server-owned addiction meter that rises with use, builds tolerance so the same dose does less, and tips into withdrawal debuffs and cravings when the player stays clean too long. Servers sell it because addiction turns a one-off consumable into an ongoing RP storyline that drives repeat demand.

Prompt Template

You are writing a FiveM resource that works on ESX, QBCore and QBox.

πŸ”’ 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/drugs/15-addiction-tolerance-withdrawal.lua. It implements a server-owned addiction meter clamped 0..100, a capped tolerance multiplier, a periodic…

πŸ”’ 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-tracked meter β€” Claude lets the client hold addiction; keep the meter, tolerance and withdrawal flag on the server.
  • Debuff wiped β€” a once-applied SetPedMoveRateOverride gets reset by the engine; re-assert it on a short loop while withdrawing.
  • Unbounded growth β€” clamp addiction 0..100 and cap tolerance server-side so the meter can't overflow.

Corrective re-prompt: "Keep addiction, tolerance and the withdrawal flag in a server table keyed by source, clamp addiction 0..100 and tolerance to 3.0, run a server tick that decays and decides withdrawal, and re-apply the movement debuff on a client loop while withdrawing."

Framework Integration

  • ESX: local ESX = exports['es_extended']:getSharedObject(); persist the meter via xPlayer.set('addiction', n) or your metadata layer.
  • QBCore: local QBCore = exports['qb-core']:GetCoreObject(); store on Player.Functions.SetMetaData('addiction', n) and notify cravings.
  • QBox: use exports.qbx_core:GetPlayer(src) and player metadata to persist addiction across sessions.

Profit Potential

$400–$6000/mo on Tebex (expected ~$1500). [INFERRED] within the $50-389 script band against the signal-scraper tebex_snapshot corpus (n=100, median seller $11.85K/mo), set for a hot RP-depth realism niche.

Trend Signal

πŸ”₯ hot β€” strategy: Addiction/withdrawal realism is the rising RP-depth theme; defensible per matrix β€” hot.

Sales Angle

Position as the RP-depth hook that converts a one-off high into an ongoing storyline β€” craving creates repeat demand for every substance on the server. Recommended Tebex price $249.

Difficulty & Ship Time

intermediate Β· ships in 1 day.