
- QBCore

GR4CKA Enhanced Drug System utiliza QBCore y oxmysql. Su configuración define la potencia de la droga, los efectos en la inmunidad, la salud y el chaleco, la probabilidad y duración de la adicción, los efectos visuales en pantalla, los cambios de movimiento y las medicinas. Los perfiles proporcionados utilizan animaciones de fumar, jeringuilla, esnifar y pastillas.
Inicia QBCore y oxmysql antes de g4_addiction. Revisa los proporcionados sql.sql migración: añade una columna de texto addiction que admite valores nulos a players. Haz una copia de seguridad de la base de datos y comprueba si la columna ya existe antes de importarla. Registra los artículos de drogas y medicinas configurados en tu inventario. El servidor los registra como artículos utilizables QBCore y guarda el estado de adicción por ID de ciudadano.
El suministro completo config.lua se reproduce a continuación. Las duraciones marcadas como segundos controlan los efectos; el tiempo de adicción está en minutos. Configura los nombres de los ítems, las traducciones y los efectos para tu servidor.
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
Comprobado: el único recurso de esta descarga.
De una comprobación estática de los archivos por el RPScripts Lab. No es una prueba de que tu servidor arranque.
G4 Addiction
23,00 US$20,99 €17,99 GBP33,99 AUD116,99 BRL18,99 CHF3640 JPY


Wasabi Scripts
![Robo en Tienda [ESX & QB] Brutal Scripts vista previa del recurso FiveM](https://cdn.rpscripts.net/rpcrate-v2/2023/12/brave_d8qJtQIr2Q-jpg-960.webp)
Brutal Scripts


¿No encuentras el script exacto? Genéralo.
Describe un script personalizado. 3 créditos gratis al día, hasta 15 por mes natural; sin tarjeta.