
- QBCore

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.
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.
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.",
}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 ¥


Wasabi Scripts
![Ladendiebstahl [ESX & QB] Brutal Scripts FiveM Ressourcen-Vorschau](https://cdn.rpscripts.net/rpcrate-v2/2023/12/brave_d8qJtQIr2Q-jpg-960.webp)
Brutal Scripts


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.