# Installing for ESX

To integrate ZeroTrust with an ESX-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 = { 
     ["mod"] = true,
     ["admin"] = true,
     ["superadmin"] = true,
}
```

This ensures that ZeroTrust correctly retrieves the player's admin group, allowing it to recognize different permission levels (e.g., "superadmin") within your ESX framework.&#x20;

Make sure you have ESX installed and properly configured before making these changes. If you're running the latest version of ESX, this updated function is essential for correct operation.

{% 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 %}
