> 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/progress-bars.md).

# Progress Bars

The progress bar (`PG`) bridge is used for timed actions such as fetching vehicle info or unlocking a vehicle.

## 🔎 Auto Detection

```lua
Config.PG = AUTO_DETECT
```

Auto-detection priority (first match wins): `QB` → `ESX` → `OX`.

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

| Constant  | Resource                                                        |
| --------- | --------------------------------------------------------------- |
| `PG.QB`   | `qb-core`                                                       |
| `PG.ESX`  | `es_extended`                                                   |
| `PG.OX`   | `ox_lib`                                                        |
| `PG.NONE` | No progress bar resource found - you will need to integrate it. |
