Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Medic Scripts

FiveM addiction system

FiveM Addiction Script

atiysuBought 12 times
Frameworks:
  • ESX
  • QBCore

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX, QBCore
File size
10.5 kB
Creator
atiysu
Updated
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

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.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

FiveM Addiction Script

In your downloads
  • Advanced Roleplay Environment | Medical System v2 FiveM script preview
    • ESX
    • QBCore, Standalone

    Advanced Roleplay Environment | Medical System v2

    veryinsanee

    $25.00$17.50
  • Brutal Ambulance Job
    • ESX
    • QBCore
    Not for your framework

    FiveM Ambulance Job (ESX/QBCore)

    Brutal Scripts

    $23.00$16.10
  • Advanced GPS Menu FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Advanced GPS Menu

    $14.00$9.80
  • FiveM Health System
    • ESX
    • QBCore
    Not for your framework

    FiveM Health System

    Izzy Scripts

    $27.00$18.90
  • nopixel health system
    • ESX
    • QBCore
    Not for your framework

    NoPixel Health System

    $37.00$25.90
  • Advanced Health System FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Advanced Health System

    $31.99$22.39
  • Body Damages V2 [ ESX / QBCore / STANDALONE ] FiveM resource preview
    • ESX
    • Standalone, QBCore

    Body Damages V2 [ESX / QBCore / Standalone]

    $18.99$13.29
  • Wasabi Crutch System FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    Wasabi Crutch System

    Wasabi Scripts

    $28.99$20.29