# 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.
    Image_Path = 'https://cfx-nui-ox_inventory/web/images/', -- | # Path to item images.
    Sound_Effects = true, -- | # Enable or disable grinder and pouring sound effects.
}

-- | # Smoking (Joint Usage) ------------------------------------------------------------------------------------

Config.Smoking = {
    Max_Hits = 12, -- | # How many hits per joint.
    Hit_Duration = 3000, -- | # How long the hit animation lasts (ms).
    Exhale_Duration = 3000, -- | # How long the exhale smoke lasts (ms).
    Pass_Distance = 3.0, -- | # Maximum distance to pass joint to another player (meters).
}

-- | # Effects (Intoxication) ------------------------------------------------------------------------------------

Config.Effects = {
    Max_Stacks = 20, -- | # Maximum intoxication stacks a player can accumulate.
    Decay_Start = 29000, -- | # How long stacks are held after the last hit before decay starts (ms).
    Decay_Per_Stack = 1600, -- | # How often 1 intoxication stack decays once the timer starts (ms).
}

-- | # Greenout ------------------------------------------------------------------------------------
-- | What happens when a greenout is triggered. Per-hit chance is in effects.lua Hits array.

Config.Greenout = {
    Duration = 10000, -- | # How long the player stays on the ground (ms).
    Cooldown = 30000, -- | # Minimum time between greenouts (ms).
}

-- | # Tray ------------------------------------------------------------------------------------

Config.Tray = {
    Item  = 'tray', -- | # Item name for the rolling tray.
    Prop  = 'prop_weed_tray', -- | # Prop model for the tray.
}

-- | # Rolling Paper ------------------------------------------------------------------------------------

Config.Paper = {
    Item      = 'rolling_paper', -- | # Item name for rolling paper.
    Label     = 'Rolling Paper', -- | # Display name in the menu header.
    Max_Uses  = 20, -- | # How many joints can be rolled per paper pack.
    Prop      = 'p_cs_papers_01', -- | # Prop model for the paper box.
}

-- | # Grinder Types ------------------------------------------------------------------------------------
-- | Each grinder tier has a different click count. Fewer clicks = faster grinding.
-- | You can add or remove grinder tiers freely.
-- |
-- | Item   = Item name in your inventory.
-- | Clicks = How many clicks required to grind.
-- | Props  = Bottom, Bottom_Full (after grinding), and Top prop models.

Config.Grinders = {
    basic = {
        Item = 'grinder_basic',
        Clicks = 6,
        Props = {
            Bottom = 'prop_weed_grinder_bottom',
            Bottom_Full = 'prop_weed_grinder_bottom_full',
            Top = 'prop_weed_grinder_top',
        },
    },
    medium = {
        Item = 'grinder_medium',
        Clicks = 4,
        Props = {
            Bottom = 'prop_weed_grinder_mid_bottom',
            Bottom_Full = 'prop_weed_grinder_mid_bottom_full',
            Top = 'prop_weed_grinder_mid_top',
        },
    },
    premium = {
        Item = 'grinder_premium',
        Clicks = 2,
        Props = {
            Bottom = 'prop_weed_grinder_high_bottom',
            Bottom_Full = 'prop_weed_grinder_high_bottom_full',
            Top = 'prop_weed_grinder_high_top',
        },
    },
}

-- | # Strains ------------------------------------------------------------------------------------
-- | Each strain defines its own items, props, and labels.
-- | Effect profiles for each strain are configured in effects.lua.
-- | You can add or remove strains freely.
-- |
-- | Type           = Strain type displayed in the menu tag (e.g. Hybrid, Indica, Sativa).
-- | Joints_Per_Bud = How many joints one bud produces.
-- | Bag_Model      = Weed bag prop model.
-- | Bud_Model      = Bud prop model.
-- | Joint_Model    = Joint prop model.
-- | Bud_Item       = Bud item name in your inventory.
-- | Bud_Label      = Bud display name.
-- | Joint_Item     = Joint item name in your inventory.
-- | Joint_Label    = Joint display name.

Config.Strains = {
    og_kush = {
        Type           = 'Hybrid',
        Joints_Per_Bud = 3,
        Bag_Model      = 'prop_weed_bag_bluedream',
        Bud_Model      = 'prop_weed_bud',
        Joint_Model    = 'prop_weed_joint',

        Bud_Item       = 'bud_og_kush',
        Bud_Label      = 'OG Kush Bud',
        Joint_Item     = 'joint_og_kush',
        Joint_Label    = 'OG Kush Joint',
    },
    purple_kush = {
        Type           = 'Indica',
        Joints_Per_Bud = 3,
        Bag_Model      = 'prop_weed_bag_whitewidow',
        Bud_Model      = 'prop_weed_bud',
        Joint_Model    = 'prop_weed_joint',

        Bud_Item       = 'bud_purple_kush',
        Bud_Label      = 'Purple Kush Bud',
        Joint_Item     = 'joint_purple_kush',
        Joint_Label    = 'Purple Kush Joint',
    },
    sour_diesel = {
        Type           = 'Sativa',
        Joints_Per_Bud = 3,
        Bag_Model      = 'prop_weed_bag_gelato',
        Bud_Model      = 'prop_weed_bud',
        Joint_Model    = 'prop_weed_joint',

        Bud_Item       = 'bud_sour_diesel',
        Bud_Label      = 'Sour Diesel Bud',
        Joint_Item     = 'joint_sour_diesel',
        Joint_Label    = 'Sour Diesel Joint',
    },
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thug.gitbook.io/documentation/scripts/roleplay-scripts/thug-weed-rolling/shared-config.lua.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
