> For the complete documentation index, see [llms.txt](https://quannsstudios.gitbook.io/quannsstudio-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quannsstudios.gitbook.io/quannsstudio-docs/alcohol-v1/configuration.md).

# Configuration

**Configuration**

All configuration lives in `config.lua`.

**Full Config**

lua

```lua
Config.PoliceJobs = {
    'police',
    'sheriff',
    'state'
}

Config.HangoverItems = {
    ['cup_water']     = true,
    ['greasy_burger'] = true,
}

Config.PoliceChecks = {
    ['breathcheck'] = false,
}

Config.HealItems = {
    ['pain_killers'] = 3,
}

Config.AlcoholItems = {
    ['abosultlyturnt'] = 5,
    ['jackdillys']     = 5,
    ['tipessy']        = 5,
    ['tequila']        = 3,
    ['beer']           = 2,
    ['wine']           = 2,
    ['champagne']      = 2,
}

Config.Levels = {
    sober  = 0,
    smell  = 1,
    tipsy  = 5,
    drunk  = 10,
    wasted = 15,
}

Config.DecayRate = 1

Config.Notifications = {
    position = 'top',
    duration = 4000,
}
```

**Options**

| Option                   | Description                                                            |
| ------------------------ | ---------------------------------------------------------------------- |
| `PoliceJobs`             | List of jobs that can perform breath checks on players                 |
| `HangoverItems`          | Items that sober the player up when consumed                           |
| `HealItems`              | Items that reduce alcohol level — value is how many points they reduce |
| `AlcoholItems`           | Drinkable items and how many alcohol points they add per sip           |
| `DecayRate`              | How fast alcohol level naturally decreases over time                   |
| `Notifications.position` | Where notifications appear — `top`, `bottom`, `left`, `right`          |
| `Notifications.duration` | How long notifications show in milliseconds                            |

**Drunk Level Thresholds**

| Level  | Points |
| ------ | ------ |
| Sober  | 0      |
| Smell  | 1      |
| Tipsy  | 5      |
| Drunk  | 10     |
| Wasted | 15     |

**Effects Per Level**

| Level  | Screen Effect              | Shake Intensity | Walk Style       |
| ------ | -------------------------- | --------------- | ---------------- |
| Tipsy  | DrugsMichaelAliensFight    | 0.3             | Slightly Drunk   |
| Drunk  | DrugsMichaelAliensFight    | 0.6             | Moderately Drunk |
| Wasted | DrugsMichaelAliensFightOut | 1.0             | Very Drunk       |

**Police Breath Check**

To enable police breath checks set `Config.PoliceChecks['breathcheck']` to `true`. Officers with a job listed in `Config.PoliceJobs` will then be able to check a player's alcohol level.


---

# 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://quannsstudios.gitbook.io/quannsstudio-docs/alcohol-v1/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.
