[STANDALONE] Better drug effects

Description

More realistic & customizable drug effects

Showcase

Features

  • Open-source UI
  • Predefined effects
  • No performance impact (0.00ms while effect is active)
  • Easily customizable
  • Framework independent (standalone)
  • Play videos & sounds
  • Create own effects

Important

Script doesn’t include any items. These are just effects you can start anytime by triggering event.

Config

Config = {
    pedDensity = math.random(10, 30), -- how many peds should be spawned over time
    peds = { -- peds that can be spawned when "spawnEnemies" is toggled in the effect
        -- https://docs.fivem.net/docs/game-references/ped-models/
        `cs_orleans`,
        `ig_orleans`,
        `s_m_m_movalien_01`,
        `u_m_y_juggernaut_01`,
        `u_m_y_pogo_01`,
        `u_m_y_rsranger_01`,
        `u_m_y_zombie_01`,
    },
    effects = {
        lsd = {
            timecycle = "spectator5",
            clipset = "move_f@scared",
            duration = 300000, -- milliseconds
            spawnEnemies = true, -- random peds that will be hostile against player (they have almost no damage)
            fx = {
                "Rampage",
                "RaceTurbo",
                "DMT_flight",
                "PeyoteEndIn",
            },
            shakeStrength = 0.5,
            sounds = { },
            video = "J0YZQNgkf9Y", -- only youtube video id is needed
        },
        weed = {
            timecycle = "spectator6",
            clipset = "MOVE_M@DRUNK@VERYDRUNK",
            duration = 90000,
            spawnEnemies = false,
            fx = {
                "HeistCelebEnd",
                "ChopVision",
            },
            shakeStrength = 1.0,
            sounds = { 
                "police",
            },
            video = "",
        },
        cocaine = {
            timecycle = "heathaze",
            clipset = "MOVE_M@QUICK",
            duration = 300000,
            spawnEnemies = true,
            fx = {
                "DrugsMichaelAliensFight",
                "Dont_tazeme_bro",
            },
            shakeStrength = 2.0,
            sounds = {
                "siren",
                "grain",
            },
            video = "",
        },
        meth = {
            timecycle = "heathaze",
            clipset = "MOVE_M@QUICK",
            duration = 300000,
            spawnEnemies = false,
            fx = {
                "SuccessMichael",
                "DrugsDrivingOut",
            },
            shakeStrength = 2.5,
            sounds = { },
            video = "",
        },
    }
}

Buy

Code is accessible No
Subscription-based No
Lines (approximately) 300
Requirements none
Support Yes
2 Likes

It’s nice, and i think you are a drugger too, so funny resource, love it!

This looks pretty good lmao

Can other people see the attacking peds or are they just client side? Because I would find it hilarious seeing someone punching nothing.

People can’t see attacking peds, they are client-side. It was made that way so people will think someone is hallucinating.

Awesome do you provide like example triggers? Not too sure how to tie it with my current drug script advanceddrugcreator

3 Likes

You can trigger effect using event:
TriggerEvent("hito_drugseffect:start", effectName)
or from server
TriggerClientEvent("hito_drugseffect:start", playerId, effectName)

If you would like to request another method of triggering effect I can add it for you :slight_smile:

How do I use the triggers? I bought the script but can’t figure out how to use it.

Someone a solution how to use it? It would be best if you could use it with esx_basicneeds. Possibly a code for what you could insert there would be great

1 Like

how can you change the animation of the drug?

1 Like

Can someone explain how to trigger this or share your file?

keep getting a error when triggering the event… i added my own drug on there is that a thing i can do or i can only alter the preconfiged drugs

could i get some help