> 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
```
