Skip to content
RPScripts

FiveM Medic Scripts

FiveM addiction system

FiveM Addiction Script

  • ESX
  • QBCore

Description

FiveM Addiction Script (aty_addiction) adds addictions for ESX and QBCore servers. Using certain items raises a player's addiction; if they stop, their need grows, and once it passes a danger level an effect is played. Players see their values in a small menu.

Features

  • Three addiction types by default: alcohol, drug and cigar. You can add more in config.lua.
  • Per addiction: title, danger limits for addiction and need, effect type (1–3) and how much addiction drops and need rises each tick.
  • Addictive items, e.g. beer, whiskey, vodka, cigar, weed and meth, each with its own item type (drink, food or cigarette) and values per use.
  • Healing items that lower addiction and need (e.g. water for alcohol).
  • Menu opened with /addictions or the F7 key (both configurable).
  • Configurable tick time, effect cooldown and player identifier (discord, steam or license).
  • Admin command /resetaddictions [playerId], plus client events to add or reduce an addiction from other scripts.
  • Player data is stored in the included database.json file, so no SQL import is needed.

Requirements

  • ESX or QBCore (set Framework to "esx" or "qb")
  • The configured items in your inventory

Installation

  • Copy the aty_addiction folder into your resources.
  • In config.lua, set your framework and identifier, and replace the entry in Admins with your own ID. The file ships with a pre-filled Discord ID that would otherwise have admin rights.
  • Adjust addictions and items to match your inventory.
  • Add ensure aty_addiction to your server.cfg.

Details

Frameworks
ESX, QBCore
File size
11 kB
Updated
Oct 14, 2026
How to install it

Installation

  1. Unzip the download into your server's resources folder.
  2. Add these lines to server.cfg, in this order:
    ensure aty_addiction

Checked: the one resource of this download.

From a static check of the files by the RPScripts Lab. It is not a test that your server starts.

FiveM Addiction Script

$13.00€11.99£9.99A$18.99R$66.99CHF 10.99¥2,060

Can't find the exact script? Generate it.

Describe a custom script. 3 free credits per day, up to 15 per calendar month; no card needed.

Try the FiveM AI Script Generator