
- QBCore
Mods contre le crime et les gangs

GR4CKA Enhanced Drug System utilise QBCore et oxmysql. Sa configuration définit la puissance des drogues, l'immunité, les effets sur la santé et l'armure, le risque et la durée de dépendance, les effets visuels à l'écran, les modifications de mouvement et les médicaments. Les profils fournis utilisent des animations de tabagisme, de seringue, de prise par le nez et de pilules.
Démarrez QBCore et oxmysql avant g4_addiction. Examinez le document fourni sql.sql migration : cela ajoute une colonne de texte addiction autorisant les valeurs nulles à players. Sauvegardez la base de données et vérifiez si la colonne existe déjà avant de l'importer. Enregistrez les objets de drogue et de médicament configurés dans votre inventaire. Le serveur les enregistre comme des objets utilisables QBCore et sauvegarde l'état de dépendance par identifiant de citoyen.
La configuration complète fournie config.lua est reproduite ci-dessous. Les durées indiquées en secondes contrôlent les effets ; le temps de dépendance est en minutes. Configurez les noms d'objets, les traductions et les effets pour votre serveur.
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
Vérifié : l'unique ressource de ce téléchargement.
Issu d'une vérification statique des fichiers par le RPScripts Lab. Ce n'est pas un test de démarrage de votre serveur.
G4 Addiction
23,00 $US20,99 €17,99 £GB33,99 $AU116,99 R$18,99 CHF3 640 JPY


Wasabi Scripts
![Aperçu de la ressource FiveM « Braquage de magasin [ESX & QB] » de Brutal Scripts](https://cdn.rpscripts.net/rpcrate-v2/2023/12/brave_d8qJtQIr2Q-jpg-960.webp)
Brutal Scripts


Vous ne trouvez pas le script exact ? Générez-le.
Décris un script sur mesure. 3 crédits gratuits par jour, jusqu’à 15 par mois civil ; sans carte.