> 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/integrations/licence.md).

# Licence

The licence bridge is used to check a player's driving/weapon licences during a stop.

## 🔎 Auto Detection

```lua
Config.Licence = AUTO_DETECT
```

Auto-detection priority (first match wins): `VMS` → `CODESTUDIO` → `QBOX` → `ESX` → `QBCORE`.

Override with the matching constant if detection picks the wrong one:

| Constant             | Resource                                                   |
| -------------------- | ---------------------------------------------------------- |
| `Licence.VMS`        | `vms_documentsv2`                                          |
| `Licence.CODESTUDIO` | `cs_license`                                               |
| `Licence.QBOX`       | `qbx_core`                                                 |
| `Licence.ESX`        | `esx_license`                                              |
| `Licence.QBCORE`     | `qb-core`                                                  |
| `Licence.NONE`       | No licence resource found - you will need to integrate it. |
