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.
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/drugs/15-addiction-tolerance-withdrawal.lua. It implements a server-owned addiction meter clamped 0..100, a capped tolerance multiplier, a periodicβ¦
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-tracked meter β Claude lets the client hold addiction; keep the meter, tolerance and withdrawal flag on the server.
- Debuff wiped β a once-applied
SetPedMoveRateOverridegets 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 viaxPlayer.set('addiction', n)or your metadata layer. - QBCore:
local QBCore = exports['qb-core']:GetCoreObject(); store onPlayer.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.