
- QBCore

GR4CKA Enhanced Drug System uses QBCore and oxmysql. Its configuration defines drug strength, immunity, health and armor effects, addiction chance and duration, screen effects, movement changes and medicines. The supplied profiles use smoking, syringe, sniffing and pill animations.
Start QBCore and oxmysql before g4_addiction. Review the supplied sql.sql migration: it adds a nullable addiction text column to players. Back up the database and check whether the column already exists before importing it. Register the configured drug and medicine items in your inventory. The server registers them as usable QBCore items and saves addiction state by citizen ID.
The complete supplied config.lua is reproduced below. Durations marked as seconds control effects; addiction time is in minutes. Configure item names, translations and effects for your 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
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.
G4 Addiction
$23.00€20.99£17.99A$33.99R$116.99CHF 19.99¥3,640


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


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.