# Permissions

#### Ace Permissions

Its required to add those permissions in your server.cfg if you want to use ace permissions

```lua
add_ace resource.rcore_shortcuts command.add_ace allow
add_ace resource.rcore_shortcuts command.remove_ace allow
add_ace resource.rcore_shortcuts command.add_principal allow
add_ace resource.rcore_shortcuts command.remove_principal allow
```

If you want to use ace permissions you need to enable it in config.lua and then you could define roles for admin access in permissions.lua

```lua
Config.UseAcePermissions = true
```

All definitions and checks are located in server/api/permissions.lua. For default ESX/QBCore permissions we use cache for better performance.

Each action has its own permissions check in server/api/permissions.lua.

#### ESX/QBCore permissions

Groups for permissions are defined in config.lua

```lua
Config.AllowedGroups = {
    'superadmin', --ESX
    'admin', --ESX
    'god', --QBCore
}
```

This permissions are used only when ace permissions are disabled


---

# Agent Instructions: 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_shortcuts/permissions.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.
