# Installing for QBox

To integrate ZeroTrust with an QBox-based server, you'll need to put your admin groups in `Cfg.WhitelistedGroups` inside `config.lua` with the following code to ensure proper compatibility:

```lua
Cfg = {}

Cfg.WhitelistedGroups = { -- Check your qbx_core/config/server.lua to make sure its the same
     ["mod"] = true,
     ["admin"] = true,
     ["support"] = true,
}
```

This function ensures that ZeroTrust correctly retrieves the player's admin group, allowing it to recognize different permission levels (e.g., "god") within your QBox framework. \
You can check your config/server.lua inside the qbx\_core folder and search `permissions` to see if its the same has `Cfg.WhitelistedGroups.`

Make sure you have qbx\_core installed and properly configured before making these changes.

{% hint style="info" %}
ZeroTrust caches the result of the admin group after the first use per player. This ensures that each player's admin group is **checked only once**, **minimizing unnecessary calls** and avoiding potential spam.
{% 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://zerotrustanticheat.gitbook.io/zerotrust/getting-started/configure-anticheat/installing-for-qbox.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.
