Zum Inhalt springen
RPScripts

Verbrechens- und Gang-Mods

FiveM-Skript zur Drogensucht

G4 Addiction

  • QBCore

Beschreibung

GR4CKA Enhanced Drug System verwendet QBCore und oxmysql. Seine Konfiguration definiert Drogenstärke, Immunität, Gesundheits- und Rüstungseffekte, Suchtwahrscheinlichkeit und -dauer, Bilschirmeffekte, Bewegungsänderungen und Medikamente. Die mitgelieferten Profile verwenden Rauchen-, Spritzen-, Schnüffel- und Pillen-Animationen.

Installation und gespeicherter Suchtzustand

Starte QBCore und oxmysql vorher g4_addiction. Überprüfe die mitgelieferte sql.sql Migration: Sie fügt eine nullable addiction Textspalte hinzu zu players. Sichere die Datenbank und prüfe vor dem Import, ob die Spalte bereits existiert. Registriere die konfigurierten Drogen- und Medizin-Items in deinem Inventar. Der Server registriert sie als verwendbare QBCore-Items und speichert den Abhängigkeitsstatus nach Bürger-ID.

Originale Konfiguration

Das vollständig mitgelieferte config.lua wird unten wiedergegeben. Als Sekunden markierte Dauern steuern Effekte; die Suchtzeit ist in Minuten angegeben. Konfiguriere Artikelnamen, Übersetzungen und Effekte für deinen Server.

Config = {}

Config.DrugImmunity = 100 -- how much the player can withstand the drug acting at the same time (drugStrength)

Config.UsableDrugs = {
    ["marijuana"] = {
        label = "Marijuana",
        animation = 'smoke', -- (smoke/syringe/sniff/pill)
        drugStrength = 30, -- this amount is being removed from immunity of player for effect duration time
        healthEffects = {
            armour = 10,
            health = -10
        },
        addiction = {
            chance = 100, -- 0-100%
            time = 60 -- time until drug wears out and you need other dose (in minutes)
        },
        effect = {
            duration = 30, -- in seconds
            screenFX = "DefaultFlash",
            speedMultiplier = 1.0, -- from 1.0 to 1.49
            walkingStyle = "MOVE_M@DRUNK@SLIGHTLYDRUNK",
            cameraShakeIntensity = 1.0,
        }
    },
    ["cocaine"] = {
        label = "Cocaine",
        animation = 'sniff', -- (smoke/syringe/sniff/pill)
        drugStrength = 10, -- this amount is being removed from immunity of player for effect duration time
        healthEffects = {
            armour = 10,
            health = -10
        },
        addiction = {
            chance = 100,
            time = 60 -- time until drug wears out and you need other dose (in minutes)
        },
        effect = {
            duration = 30, -- in seconds
            screenFX = "DefaultFlash",
            speedMultiplier = 1.0, -- from 1.0 to 1.49
            walkingStyle = "MOVE_M@DRUNK@SLIGHTLYDRUNK",
            cameraShakeIntensity = 1.0,
        }
    },
    ["heroin"] = {
        label = "Heroin",
        animation = 'syringe', -- (smoke/syringe/sniff/pill)
        drugStrength = 5, -- this amount is being removed from immunity of player for effect duration time
        healthEffects = {
            armour = 10,
            health = -10
        },
        addiction = {
            chance = 0,
            time = 60 -- time until drug wears out and you need other dose (in minutes)
        },
        effect = {
            duration = 180, -- in seconds
            screenFX = "DefaultFlash",
            speedMultiplier = 1.0, -- from 1.0 to 1.49
            walkingStyle = "MOVE_M@DRUNK@SLIGHTLYDRUNK",
            cameraShakeIntensity = 1.0,
        }
    },
    ["mdma"] = {
        label = "MDMA",
        animation = 'pill', -- (smoke/syringe/sniff/pill)
        drugStrength = 5, -- this amount is being removed from immunity of player for effect duration time
        healthEffects = {
            armour = 10,
            health = -10
        },
        addiction = {
            chance = 0,
            time = 60 -- time until drug wears out and you need other dose (in minutes)
        },
        effect = {
            duration = 180, -- in seconds
            screenFX = "DefaultFlash",
            speedMultiplier = 1.0, -- from 1.0 to 1.49
            walkingStyle = "MOVE_M@DRUNK@SLIGHTLYDRUNK",
            cameraShakeIntensity = 1.0,
        }
    },
}

Config.Medication = {
    ["marijuana_cure"] = {'marijuana'},
    ["universal_cure"] = {'marijuana', 'cocaine', 'heroin' , 'mdma'}
}

Config.Translations = {
    notification_header = "Dikkat",
    overdose_text = "Şu anda",
    overdose_highlighted_text = "Aşırı Dozda",
    overdose_description = "Vücudunuz aldığınız ilaç miktarıyla başa çıkamadı...",
    addiction_text = "Şu anda",
    addiction_description = "İlacın vücuttaki miktarı azaldıkça, kendinizi kötü hissedeceksiniz; bağımlılıktan kurtulmak için doğru türde bir tedavi almanız gerekiyor.",    
}

Details

Frameworks
QBCore
Dateigröße
31,9 kB
Aktualisiert
27.09.2026
Installationsanleitung (EN)

Installation

  1. Entpacke den Download in den resources-Ordner deines Servers.
  2. Füge diese Zeilen in dieser Reihenfolge in die server.cfg ein:
    ensure g4_addiction

Geprüft: die einzige Ressource dieses Downloads.

Aus einer statischen Prüfung der Dateien durch das RPScripts Lab. Das ist kein Test, ob dein Server startet.

G4 Addiction

23,00 $20,99 €17,99 £33,99 AU$116,99 R$18,99 CHF3.640 ¥

Nicht das passende Script gefunden? Lass es generieren.

Beschreib dein eigenes Script. 3 kostenlose Credits pro Tag, bis zu 15 pro Kalendermonat; keine Karte nötig.

FiveM AI Script Generator testen