> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apex-services.site/llms.txt
> Use this file to discover all available pages before exploring further.

# APEX Progressbar

> Drop-in ox_lib override with a clean minimal UI.

A lightweight, standalone progressbar for FiveM / ESX with a clean animated countdown UI. Drop-in replacement for `lib.progressBar` / `lib.progressCircle` — no code changes in your existing scripts — but also usable on its own via exports or legacy events.

## Features

* Clean minimal UI — bottom-centered, animated fill stripe
* Dark + light themes — per-call color override
* Drop-in ox\_lib override — `lib.progressBar` and `lib.progressCircle` use the APEX UI
* Legacy event compatibility — `a_hud::StartProgressBar` / `StopProgressBar` still work
* Standalone exports — `start`, `stop`, `update`, `isActive`
* en/de localization

## Requirements

<Card title="Required" icon="circle-check">
  `es_extended`, `ox_lib`
</Card>

## Configuration

```lua config.lua theme={null}
Config.DefaultColor       = 'dark'    -- 'dark' | 'light'
Config.OverrideOxLib      = true      -- replace lib.progressBar / lib.progressCircle
Config.ListenLegacyEvents = true      -- also listen to a_hud::Start/StopProgressBar
```

Start via export, ox\_lib call, or legacy event — all paths supported. The `onComplete` callback gives a `wasCancelled` bool.

<Tip>
  Load `apex-progressbar` early in `server.cfg` — it overrides `lib.progressBar` at boot, so any script using ox\_lib's progress UI inherits the APEX visuals.
</Tip>

## Hooks

See [Hooks reference / Progressbar](/hooks/apex-progressbar). Key hooks: `Hooks.OnProgressStateChanged(isActive)`, `Hooks.ShouldBypassOverride`, `Hooks.ShouldCancelProgress`.

## Resource info

<Note>
  Code accessible: `config.lua`, `hooks.lua`, `locales/*`, `html/*`. Approximately 350 lines of Lua + NUI. Client-only logic. English + German.
</Note>
