# Permissions Troubleshooting

All admin commands out of the box in our scripts require `god` or `admin` permissions in QBCore and `admin` permissions in ESX by default.

To give someone access to the command they need to be a part of the correct group in your `server.cfg` file see the following example:

```bash
add_principal identifier.fivem:XXXXXXX group.god # QBCore
add_principal identifier.fivem:XXXXXXX group.admin # QBCore
```

```bash
add_principal identifier.fivem:XXXXXXX group.admin # ESX
```

Restart your server and you are ready to go!

{% hint style="warning" %}
ESX only: If you are still having issues, try running in-game -> `/setgroup [id] admin`
{% endhint %}


---

# 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://b14ck.gitbook.io/b14ck-scripts/permissions-troubleshooting.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.
