> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_drugs/features/addiction-system.md).

# Addiction System

The addiction system tracks drug use and can apply withdrawal effects.

## ⌨️ Player Command

Players can check their addiction level:

```cfg
/drugs_addiction
```

## ⚙️ Settings

Configure addiction in `config.lua`.

| Option                | Description                                        |
| --------------------- | -------------------------------------------------- |
| `Enabled`             | Turns the system on or off.                        |
| `WithdrawalThreshold` | Level needed before withdrawal starts.             |
| `WithdrawalTimeLimit` | Time after last drug use before withdrawal starts. |
| `DecayInterval`       | How often addiction decays.                        |
| `DecayMin`            | Minimum decay per tick.                            |
| `DecayMax`            | Maximum decay per tick.                            |
| `DrugStrength`        | Addiction added by each drug type.                 |

## 💪 Drug Strength

Default values:

| Drug   | Strength |
| ------ | -------- |
| `weed` | `10`     |
| `meth` | `25`     |
| `coke` | `15`     |

## 🚫 Disable Addiction

```lua
Config.AddictionSystem.Enabled = false
```


---

# 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:

```
GET https://documentation.rcore.cz/paid-resources/rcore_drugs/features/addiction-system.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.
