> 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_police/configs/permissions.md).

# Standalone Permissions

## ⚠️ Important

Before using `/setjob` on standalone servers, make sure to define ACE permissions - see [Installation](/paid-resources/rcore_police/installation.md) (Define ACE Permissions step).

## Assigning police job

```lua
/setjob playerId police 4
```

* `playerId` = player's ID from **txAdmin → Live Console** (e.g. `John Doe (1)` → ID = `1`).

## Permissions

By default allowed for:

* `group.owner`
* `group.admin`

## Assigning someone into a group with ACE

```lua
add_principal identifier.discord:yourDiscordId group.admin
```

* `yourDiscordId` = your **Discord identifier**, not the txAdmin number. You can find it in the server console or logs (usually looks like `discord:175187745935851521`).

This line assigns that Discord account to the **`group.admin`** permission group.

{% hint style="info" %}
After this, running `/setjob` should confirm your group (e.g. `group.admin` or `group.owner`).
{% endhint %}

## Custom groups

You only need to edit **`configs/permissions.lua`** if you are using different groups:

```lua
PermissionMap = {
    ['group.superadmin'] = { Permissions.HAS_SERVER_GROUP },
    ['group.mod']       = { Permissions.HAS_SERVER_GROUP },
}
```

## Fallback

If no mapping matches, **RCore Police** falls back to ACE permissions:

```lua
if IsPlayerAceAllowed(client, 'command') then
    retval = true
end
```

This means that if a player has the generic ACE right `command`, they will still be allowed. While this ensures there's always a fallback, it's recommended to **explicitly define your groups** in `PermissionMap` for proper control.

## 📖 Learn more: ACE Permissions

For a full explanation of how ACE permissions and principals work, see the community guide: [Basic Aces & Principals Overview (Cfx.re Forum)](https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917)
