Skip to content

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

RPScripts

FiveM Drug Scripts

G4 Addiction – preview 2

G4 Addiction

Bought 23 times
Frameworks:
  • QBCore

Checked by the RPScripts Lab

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

Details

Frameworks
QBCore
Dependencies
oxmysql
File size
30.8 kB
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

G4 Addiction is a drug addiction system for QBCore servers. Players use drug items, build up addiction over time and can overdose, and medicine items clear the addiction again. Everything is set per drug in config.lua.

Features

  • Drug items defined in Config.UsableDrugs; the supplied profiles are marijuana, cocaine, heroin and mdma, each registered as a usable QBCore item
  • Per-drug settings for drug strength, health and armor change, addiction chance (0 to 100 percent), addiction time in minutes, effect duration, screen effect, sprint speed multiplier, walking style and camera shake
  • Four use animations: smoking, syringe, sniffing and pill
  • Immunity pool (Config.DrugImmunity): each active drug uses part of it, and exceeding it causes an overdose that kills the player
  • Addiction countdown that ticks down every minute; at zero the player suffers (sprinting disabled, screen effect, drunk walk) until the next dose or a cure
  • Medicine items in Config.Medication (marijuana_cure and universal_cure by default) that remove the addiction to the listed drugs
  • NUI overlay with immunity and addiction bars plus overdose and addiction alerts; alert texts are in Config.Translations (Turkish by default)
  • Addiction state is saved per citizen ID in the players table and restored when the player loads

Requirements

  • QBCore (qb-core)
  • oxmysql
  • Items in your QBCore shared items for each configured drug and medicine

Installation

  1. Copy the g4_addiction folder into your resources directory.
  2. Import sql.sql. It adds a nullable addiction text column to players; check that the column does not exist yet and back up first.
  3. Add the drug and medicine items from config.lua to your QBCore items.
  4. Start the resource after qb-core and oxmysql in your server.cfg:
    ensure g4_addiction
  5. Adjust drugs, medicines and alert texts in config.lua.

Server setup

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

Checked: the only resource of this download.

G4 Addiction

In your downloads
  • FiveM Torture System
    • ESX
    • QBCore
    Not for your framework

    FiveM Torture System

    Danzo Scripts

    $24.00$16.80
  • Boss Menu
    • ESX
    • QBCore
    Not for your framework

    Advanced Boss Menu

    Eyes Store

    $5.00$3.50
  • 0r-HeistPack – Multiplayer Heist and Robbery Pack FiveM script preview
    • QBCore
    • Qbox
    Not for your framework

    0r-HeistPack - Multiplayer Heist and Robbery Pack

    0Resmon

    $17.99$12.59
  • Drugs Creator FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Drugs Creator

    Jaksam

    $50.00$35.00
  • Gang War
    • ESX
    • QBCore
    Not for your framework

    Wasabi Gang War Phone (ESX/QB)

    Wasabi Scripts

    $26.00$18.20
  • Lunar Drugs Creator FiveM script preview
    • QBCore
    Not for your framework

    Lunar Drugs Creator

    Lunar Scripts

    $14.49$10.14
  • Origen Illegal/Crime System FiveM resource preview 2
    • QBCore
    Not for your framework

    Origen Illegal/Crime System

    Origen Network

    $21.99$15.39
  • Prison
    • ESX
    • Standalone, QBCore, Qbox

    Prison all-in-one system

    rcore

    $32.00$22.40