> 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/commands-and-permissions.md).

# Commands and Permissions

`rcore_drugs` has a small set of commands for admins and players.

## ⌨️ Commands

| Command            | Who uses it    | Description                                        |
| ------------------ | -------------- | -------------------------------------------------- |
| `/drugs_admin`     | Admins         | Opens the admin panel.                             |
| `/drugs_addiction` | Players        | Shows your current addiction level.                |
| `drugs_seed`       | Server console | Imports default gameplay data after first install. |

{% hint style="warning" %}
Run `drugs_seed` from the server console, not from in-game chat.
{% endhint %}

## 🛡️ Admin Access

Admin access depends on your framework.

{% tabs %}
{% tab title="ESX" %}
ESX checks the groups in `Config.FrameworkAdminGroups`.

Default groups:

```lua
[Framework.ESX] = { 'superadmin', 'admin' }
```

{% endtab %}

{% tab title="QBCore" %}
QBCore checks ACE permission for admin access.

Make sure your admins have the needed command permission in your server permissions setup.
{% endtab %}

{% tab title="QBX" %}
QBX checks ACE permission for admin access.

Make sure your admins have the needed command permission in your server permissions setup.
{% endtab %}

{% tab title="Standalone" %}
Standalone checks this ACE permission:

```cfg
rcore_drugs.admin
```

{% endtab %}
{% endtabs %}

## ✏️ Change Commands

Edit `Config.Commands` in `config.lua`.

```lua
Config.Commands = {
    Admin = "drugs_admin",
    CheckAddiction = "drugs_addiction"
}
```
