Pular para o conteúdo
RPScripts

Mods de Crime e Gangues

Roteiro de vício em drogas FiveM

G4 Addiction

  • QBCore

Descrição

O GR4CKA Enhanced Drug System usa QBCore e oxmysql. Sua configuração define a força da droga, imunidade, efeitos na saúde e no colete, chance e duração do vício, efeitos visuais na tela, alterações de movimento e remédios. Os perfis fornecidos usam animações de fumar, seringa, aspirar e pílula.

Instalação e estado de vício salvo

Inicie o QBCore e o oxmysql antes g4_addiction. Revise o fornecido sql.sql migração: ela adiciona uma coluna de texto addiction anulável a players. Faça backup do banco de dados e verifique se a coluna já existe antes de importá-la. Registre os itens de drogas e remédios configurados no seu inventário. O servidor os registra como itens utilizáveis do QBCore e salva o estado de vício por ID de cidadão.

Configuração original

O conteúdo fornecido completo config.lua está reproduzido abaixo. As durações marcadas como segundos controlują os efeitos; o tempo de vício está em minutos. Configure nomes de itens, traduções e efeitos para o seu 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.",    
}

Detalhes

Frameworks
QBCore
Tamanho do arquivo
31,9 kB
Atualizado
27 de set. de 2026
Guia de instalação (EN)

Instalação

  1. Descompacte o download na pasta resources do seu servidor.
  2. Adicione estas linhas ao server.cfg, nesta ordem:
    ensure g4_addiction

Verificado: o único recurso deste download.

De uma verificação estática dos arquivos pelo RPScripts Lab. Não é um teste de que o seu servidor inicia.

G4 Addiction

US$ 23,00€ 20,99£ 17,99AU$ 33,99R$ 116,99CHF 18,99JP¥ 3.640
  • QBCore NoPixel
    • QBCore
    US$ 109,99€ 97,99£ 82,99AU$ 158,99R$ 559,99CHF 90,99JP¥ 17.390
  • Menu do chefe
    • ESX
    • QBCore
    US$ 5,00€ 4,99£ 3,99AU$ 7,99R$ 25,99CHF 4,99JP¥ 800
  • Prévia do sistema de tortura FiveM
    • ESX
    • QBCore
    • QBOX
    US$ 24,00€ 21,99£ 18,99AU$ 34,99R$ 121,99CHF 19,99JP¥ 3.800
  • Script de venda de drogas fivem
    • ESX
    • QBCore
    • vRP
    US$ 42,00€ 37,99£ 31,99AU$ 60,99R$ 213,99CHF 34,99JP¥ 6.640

Não achou o script exato? Gere o seu.

Descreva um script personalizado. 3 créditos grátis por dia, até 15 por mês civil; sem cartão.

Testar o FiveM AI Script Generator