> 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-config.lua.md).

# shared/config.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

Config = {}

-- | # Settings ------------------------------------------------------------------------------------
-- | # 'ox' = ox_inventory (default), 'other' = custom inventory (edit server/no_escrow.lua).

Config.Settings = {
    Inventory     = 'ox',  -- | # 'ox' = ox_inventory, 'other' = custom inventory.
    Sound_Effects = true,  -- | # Enable or disable NUI sound effects (cap, pocket, pop, swallow).
    Overdose      = { Enabled = true, Pills = 6, In_Minutes = 5 }, -- | # This many pills (any type) within In_Minutes -> death.
    Nod           = { Enabled = true, Pills = 5, In_Minutes = 5 }, -- | # This many pills (any type) within In_Minutes -> temporary pass-out.
}

-- | # Nod Off ------------------------------------------------------------------------------------
-- | # Opioid "nodding" — a temporary pass-out (NOT death), triggered by the Config.Settings.Nod limit.
-- | # Ragdoll_Chance (per level in shared/effects.lua) is a separate, shorter stumble.

Config.Nod_Details = {
    Fall_Duration = 1500,        -- | # Quick stumble ragdoll length (ms) for Ragdoll_Chance.
    Duration      = 6000,        -- | # How long the player stays slumped during a full nod-off (ms).
    Cooldown      = 25000,       -- | # Minimum time between nod-offs (ms).
    Fx            = 'InchPurple', -- | # Extra timecycle layered over the current one during a nod.
}

-- | # Medications --------------------------------------------------------------------------------
-- | One entry per medication, keyed by its name (e.g. 'oxycodone'). Effect levels (timecycle/shake/
-- | vignette/drunk) live in shared/effects.lua, keyed by the same name.
-- |
-- | Label           = display name shown on the status bar.
-- | Count           = how many pills a full bottle holds.
-- | Effect_Duration = how long the effect holds before it starts decaying (minutes).
-- | Items.Bottle    = bottle inventory item name.  Items.Pill = loose pill inventory item name.
-- | Props.Bottle    = bottle prop model.  Props.Cap = cap prop model.  Props.Pill = pill prop model.

Config.Meds = {
    oxycodone = {
        Label           = 'Oxycodone 30mg',
        Count           = 20,
        Effect_Duration = 1.5,
        Items           = { Bottle = 'oxycodone_bottle', Pill = 'oxycodone_pill' },
        Props           = { Bottle = 'thug_bottle_oxycodone', Cap = 'thug_cap_oxycodone', Pill = 'thug_pill_oxycodone' },
    },
    percocet = {
        Label           = 'Percocet 10/325',
        Count           = 20,
        Effect_Duration = 1,
        Items           = { Bottle = 'percocet_bottle', Pill = 'percocet_pill' },
        Props           = { Bottle = 'thug_bottle_percocet', Cap = 'thug_cap_percocet', Pill = 'thug_pill_percocet' },
    },
    xanax = {
        Label           = 'Xanax 2mg',
        Count           = 20,
        Effect_Duration = 2,
        Items           = { Bottle = 'xanax_bottle', Pill = 'xanax_pill' },
        Props           = { Bottle = 'thug_bottle_xanax', Cap = 'thug_cap_xanax', Pill = 'thug_pill_xanax' },
    },
    tramadol = {
        Label           = 'Tramadol 50mg',
        Count           = 20,
        Effect_Duration = 0.75,
        Items           = { Bottle = 'tramadol_bottle', Pill = 'tramadol_pill' },
        Props           = { Bottle = 'thug_bottle_tramadol', Cap = 'thug_cap_tramadol', Pill = 'thug_pill_tramadol' },
    },
}
```
