> For the complete documentation index, see [llms.txt](https://thug.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thug.gitbook.io/documentation/scripts/roleplay-scripts/thug-pill-popping/shared-effects.lua.md).

# shared/effects.lua

```lua
-- | # For the most quality and unique FiveM resources: https://thug-studios.com
-- | # If you need help, join our Discord server: https://discord.gg/thugstudios

-- | # Medication Effects -------------------------------------------------------
-- |
-- | HOW IT WORKS:
-- | Each medication has a Pills array. Each entry defines what happens at that pill/stack threshold.
-- | Everything is per level, so you can change the timecycle/screen fx from pill to pill. Only include
-- | fields that differ from defaults; omitted = inactive. Duplicate/edit a block to make a new one.
-- |
-- | FIELD REFERENCE (Pills array):
-- | Pills              = which pill/stack count activates this level
-- | Timecycle          = timecycle modifier for this level (https://wiki.rage.mp/wiki/Timecycle_Modifiers)
-- | Timecycle_Strength = timecycle intensity at this level (0.0 - 1.0)
-- | Camera_Shake       = drunk camera shake amplitude (0.0 - 2.0)
-- | Vignette_Opacity   = edge darkness opacity, the external fading (0.0 - 1.0)
-- | Vignette_Size      = how far the darkness reaches inward (0 - 100)
-- | Drunk              = true -> drunk walk clipset kicks in
-- | Ragdoll_Chance     = quick stumble chance per pill (0.0 - 1.0)
-- |
-- | OPTIONAL (supported but not used below — just add any of these to a level to enable it):
-- | Notification       = 'text'  -> message shown when this level activates
-- | Slow               = 0.80    -> sprint multiplier (< 1.0 = slower, e.g. 0.80 = 80% speed)
-- | Fast               = { Speed = 1.10, Seconds = 8 }  -> temporary sprint boost (multiplier for X seconds)
-- | Add_Armor          = 25      -> armor added when this level activates (capped at 100)
-- | Add_Health         = 20      -> health added when this level activates (capped at max health)
-- | Screen_Effect      = true    -> plays the animpostfx below                (https://wiki.rage.mp/wiki/Screen_FX)
-- | Screen_FX          = 'DrugsMichaelAliensFight'  -> which screen effect to play (used with Screen_Effect)

Config.Effects_Profile = {

    -- | # Oxycodone -------------------------------------------------------------
    oxycodone = {
        Pills = {
            { Pills = 1, Timecycle = 'METRO_Tunnels', Timecycle_Strength = 0.20, Camera_Shake = 0.20, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 2, Timecycle = 'METRO_Tunnels', Timecycle_Strength = 0.40, Camera_Shake = 0.45, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 3, Timecycle = 'METRO_Tunnels', Timecycle_Strength = 0.75, Camera_Shake = 0.70, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true },
            { Pills = 4, Timecycle = 'METRO_Tunnels', Timecycle_Strength = 0.90, Camera_Shake = 1.00, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true, Ragdoll_Chance = 0.5 },
        },
    },

    -- | # Percocet --------------------------------------------------------------
    percocet = {
        Pills = {
            { Pills = 1, Timecycle = 'BlackOut', Timecycle_Strength = 0.20, Camera_Shake = 0.20, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 2, Timecycle = 'BlackOut', Timecycle_Strength = 0.40, Camera_Shake = 0.45, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 3, Timecycle = 'BlackOut', Timecycle_Strength = 0.75, Camera_Shake = 0.70, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true },
            { Pills = 4, Timecycle = 'BlackOut', Timecycle_Strength = 0.90, Camera_Shake = 1.00, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true, Ragdoll_Chance = 0.5 },
        },
    },

    -- | # Xanax -----------------------------------------------------------------
    xanax = {
        Pills = {
            { Pills = 1, Timecycle = 'traffic_skycam', Timecycle_Strength = 0.20, Camera_Shake = 0.20, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 2, Timecycle = 'traffic_skycam', Timecycle_Strength = 0.40, Camera_Shake = 0.45, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 3, Timecycle = 'traffic_skycam', Timecycle_Strength = 0.75, Camera_Shake = 0.70, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true },
            { Pills = 4, Timecycle = 'traffic_skycam', Timecycle_Strength = 0.90, Camera_Shake = 1.00, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true, Ragdoll_Chance = 0.5 },
        },
    },

    -- | # Tramadol --------------------------------------------------------------
    tramadol = {
        Pills = {
            { Pills = 1, Timecycle = 'underwater', Timecycle_Strength = 0.20, Camera_Shake = 0.20, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 2, Timecycle = 'underwater', Timecycle_Strength = 0.40, Camera_Shake = 0.45, Vignette_Opacity = 0.9, Vignette_Size = 80 },
            { Pills = 3, Timecycle = 'underwater', Timecycle_Strength = 0.75, Camera_Shake = 0.70, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true },
            { Pills = 4, Timecycle = 'underwater', Timecycle_Strength = 0.90, Camera_Shake = 1.00, Vignette_Opacity = 0.9, Vignette_Size = 80, Drunk = true, Ragdoll_Chance = 0.5 },
        },
    },

}

```
