> For the complete documentation index, see [llms.txt](https://mythic-scripts.gitbook.io/mythic-scripts-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mythic-scripts.gitbook.io/mythic-scripts-documentation/resources/weed-edibles-system/configuration.md).

# Configuration

All configuration lives in `config.lua` .

### Full Config

{% code title="config.lua" expandable="true" %}

```lua
Config = Config or {}

Config.Edibles = {
    Items = {
        stone_patch_gummies = {
            label = 'Stone Patch Gummies',   -- Display name shown to players
            eatTime = 4000,                  -- Time (ms) it takes to eat the edible
            toleranceGain = 8,               -- How much tolerance is added per use
            strength = 1.0                   -- How strong the high is (1.0 = normal)
        },
        jolly_rancher_gummies = {
            label = 'Jolly Rancher Gummies', -- Display name shown to players
            eatTime = 3500,                  -- Time (ms) it takes to eat
            toleranceGain = 6,               -- Lower tolerance gain = easier to stack
            strength = 0.85                  -- Slightly weaker than standard gummies
        },
        stoney_thc_gummies = {
            label = 'Stoney THC Gummies',    -- Display name shown to players
            eatTime = 5000,                  -- Longer eat time for realism
            toleranceGain = 10,              -- High tolerance gain (very strong)
            strength = 1.25                  -- Strongest edible effect
        },
        whis_bites_gummies = {
            label = 'Wake N Bakey Bites',    -- Display name shown to players
            eatTime = 4500,                  -- Time (ms) it takes to eat
            toleranceGain = 7,               -- Moderate tolerance increase
            strength = 0.95                  -- Slightly under standard strength
        }
    }
}

Config.Panic = {
    Enabled = true,        -- Enable or disable panic / greening out effects
    BaseChance = 25,       -- Base % chance to panic when eating an edible
    MinChance = 5,         -- Lowest possible panic chance after tolerance applies
    Intensity = {
        min = 1,           -- Minimum panic intensity level
        max = 3            -- Maximum panic intensity level
    },
    Duration = {
        base = 30000,      -- Base panic duration in milliseconds (30 seconds)
        perIntensity = 15000 -- Extra time added per intensity level
    },
    RagdollChance = {
        base = 15,         -- Base % chance to ragdoll during panic
        perIntensity = 10  -- Extra ragdoll chance per intensity level
    }
}

Config.Tolerance = {
    Max = 100,             -- Maximum tolerance a player can reach
    Decay = {
        Interval = 10 * 60 * 1000, -- Time between tolerance decay (10 minutes)
        Amount = 5                -- How much tolerance is removed each interval
    },
    GreeningOutReduction = 0.5
    -- How much tolerance is reduced when a player greens out
    -- (0.5 = 50% tolerance loss)
}
```

{% endcode %}

### Items

{% code title="data/items.lua" expandable="true" %}

```lua
['stone_patch_pack'] = {
    label = 'Stone Patch Gummies (Packaged)',
    weight = 350,
    stack = true,
    close = true,
    description = 'Sealed pack of extra strength Stone Patch THC gummies.',
    client = {
        image = 'stone_patch_pack.png',
    },
},
['jolly_rancher_pack'] = {
    label = 'Jolly Rancher THC Gummies (Packaged)',
    weight = 350,
    stack = true,
    close = true,
    description = 'Sealed pack of sour Jolly Rancher THC gummies.',
    client = {
        image = 'jolly_rancher_pack.png',
    },
},
['stoney_thc_pack'] = {
    label = 'Stoney THC Gummies (Packaged)',
    weight = 300,
    stack = true,
    close = true,
    description = 'Sealed pack of strawberry Stoney THC gummies.',
    client = {
        image = 'stoney_thc_pack.png',
    },
},
['whis_bites_pack'] = {
    label = 'Whis Bites Gummies (Packaged)',
    weight = 300,
    stack = true,
    close = true,
    description = 'Sealed pack of green apple Whis Bites THC gummies.',
    client = {
        image = 'whis_bites_pack.png',
    },
},

['stone_patch_gummies'] = {
    label = 'Stone Patch Gummies',
    weight = 150,
    stack = true,
    close = true,
    description = 'Extra strength THC sour gummies.',
    client = {
        image = 'stone_patch_gummies.png',
    },
},
['jolly_rancher_gummies'] = {
    label = 'Jolly Rancher THC Gummies',
    weight = 150,
    stack = true,
    close = true,
    description = 'Sour THC gummies infused with strong concentrate.',
    client = {
        image = 'jolly_rancher_gummies.png',
    },
},
['stoney_thc_gummies'] = {
    label = 'Stoney THC Gummies',
    weight = 120,
    stack = true,
    close = true,
    description = 'Strawberry flavored THC gummies.',
    client = {
        image = 'stoney_thc_gummies.png',
    },
},
['whis_bites_gummies'] = {
    label = 'Whis Bites Gummies (Green Apple)',
    weight = 120,
    stack = true,
    close = true,
    description = 'Green apple THC gummies.',
    client = {
        image = 'whis_bites_gummies.png',
    },
},
```

{% endcode %}

{% hint style="info" %}
All the icons for the inventory are located in install/inventory/images/\*.png.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://mythic-scripts.gitbook.io/mythic-scripts-documentation/resources/weed-edibles-system/configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
