> 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/xanax-drug-system/configuration.md).

# Configuration

All configuration lives in `config.lua` .

### Full Config

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

```lua
Config = {}

Config.ProgressDurations = {
    openBottle     = 6000,  -- Opening a bottle animation time
    takePill       = 9000,  -- Time to take the pill
    passPill       = 8000,  -- Pass pill to another player
    dizzyRecovery  = 8000,  -- Time to recover from dizziness
    onsetDelay     = 6000   -- Delay before pill effects start
}

Config.BottleInfo = {
    xanax_05_bottle = {
        visual     = 'Small white bottle labeled “Xanax 0.5mg.”',
        strength   = '0.5mg',
        potency    = 'Low',
        onset      = '15–30 seconds',
        warnings   = 'May cause drowsiness.',
        notes      = 'Light anxiety relief.',
        desc       = 'A mild dosage commonly used for anxiety reduction.',
        progress   = 25,
        color      = '#A7C7E7',
        pillItem   = 'xanax_05',
        minPills   = 3,
        maxPills   = 7
    },

    xanax_10_bottle = {
        visual     = 'Medium orange bottle marked “Xanax 1mg.”',
        strength   = '1mg',
        potency    = 'Moderate',
        onset      = '10–20 seconds',
        warnings   = 'Avoid mixing with alcohol.',
        notes      = 'Often used for panic disorder.',
        desc       = 'A standard prescription-strength Xanax tablet.',
        progress   = 50,
        color      = '#6AAFE6',
        pillItem   = 'xanax_10',
        minPills   = 4,
        maxPills   = 10
    },

    xanax_25_bottle = {
        visual     = 'Amber bottle labeled “Xanax 2.5mg.”',
        strength   = '2.5mg',
        potency    = 'High',
        onset      = '5–10 seconds',
        warnings   = 'High risk of sedation and memory loss.',
        notes      = 'Commonly misused at higher doses.',
        desc       = 'Strong dosage often associated with heavy sedation.',
        progress   = 75,
        color      = '#4C8ED9',
        pillItem   = 'xanax_25',
        minPills   = 5,
        maxPills   = 12
    },

    xanax_20_bottle = {
        visual     = 'Large bottle labeled “Xanax 2mg.”',
        strength   = '2mg',
        potency    = 'Very High',
        onset      = '3–5 seconds',
        warnings   = 'Extremely potent. Risk of blackout.',
        notes      = 'Street name: “Bars.”',
        desc       = 'Very potent pill producing heavy relaxation or blackout.',
        progress   = 90,
        color      = '#1F6ED4',
        pillItem   = 'xanax_20',
        minPills   = 6,
        maxPills   = 14
    }
}

Config.XanaxEffects = {
    xanax_25 = {
        dizzyChance = 10,
        screenEffect = 'DrugsDrivingOut',
        timecycle = 'spectator5',
        shake = 0.1,
        walkstyle = nil,
        isDrunk = false,
        timeScale = 1.0,
        duration = 45000,
        description = 'Mild relief and light relaxation.'
    },

    xanax_05 = {
        dizzyChance = 20,
        screenEffect = 'DrugsDrivingOut',
        timecycle = 'spectator6',
        shake = 0.2,
        walkstyle = 'move_m@drunk@slightlydrunk',
        isDrunk = false,
        timeScale = 1.0,
        duration = 60000,
        description = 'Moderate relaxation, slower thoughts.'
    },

    xanax_10 = {
        dizzyChance = 30,
        screenEffect = 'DrugsDrivingOut',
        timecycle = 'spectator7',
        shake = 0.3,
        walkstyle = 'move_m@drunk@moderatedrunk',
        isDrunk = true,
        timeScale = 1.0,
        duration = 90000,
        description = 'Strong relief, slowed reaction, heavy calm.'
    },

    xanax_20 = {
        dizzyChance = 50,
        screenEffect = 'DrugsDrivingOut',
        timecycle = 'spectator8',
        shake = 0.4,
        walkstyle = 'move_m@drunk@verydrunk',
        isDrunk = true,
        timeScale = 0.9,
        duration = 120000,
        description = 'Deep sedation, detached state, heavy effects.'
    }
}
```

{% endcode %}

### Items

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

```lua
['xanax_05'] = {
    label = 'Xanax 0.5mg',
    weight = 0,
    stack = true,
    close = true,
    description = 'A small 0.5mg Xanax pill.',
},
['xanax_25'] = {
    label = 'Xanax 0.25mg',
    weight = 0,
    stack = true,
    close = true,
    description = 'A small 0.25mg Xanax pill.',
},
['xanax_10'] = {
    label = 'Xanax 1.0mg',
    weight = 0,
    stack = true,
    close = true,
    description = 'A 1.0mg Xanax pill.',
},
['xanax_20'] = {
    label = 'Xanax 2.0mg',
    weight = 0,
    stack = true,
    close = true,
    description = 'A strong 2.0mg Xanax pill.',
},
['xanax_05_bottle'] = {
    label = 'Xanax 0.5mg Bottle',
    weight = 1,
    stack = true,
    close = true,
    description = 'A small prescription bottle containing 0.5mg Xanax tablets.',
},
['xanax_25_bottle'] = {
    label = 'Xanax 0.25mg Bottle',
    weight = 1,
    stack = true,
    close = true,
    description = 'A prescription bottle filled with 0.25mg Xanax pills.',
},
['xanax_10_bottle'] = {
    label = 'Xanax 1.0mg Bottle',
    weight = 1,
    stack = true,
    close = true,
    description = 'A prescription bottle of 1.0mg Xanax tablets.',
},
['xanax_20_bottle'] = {
    label = 'Xanax 2.0mg Bottle',
    weight = 1,
    stack = true,
    close = true,
    description = 'A strong prescription bottle of 2.0mg Xanax tablets.',
},
```

{% 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/xanax-drug-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.
