> For the complete documentation index, see [llms.txt](https://codeworks-fivem.gitbook.io/fivem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codeworks-fivem.gitbook.io/fivem/scripts/hud-system/integrations/ox_lib/progressbar.md).

# Progressbar

## 1. Navigate to `ox_lib/resource/interface/client/progressbar.lua`

## 2. Find the lib.progressCircle function and replace it with this:

```lua
function lib.progressCircle(data)
    while progress do Wait(100) end

    if not interruptProgress(data) then
        progress = data

        exports['cdw-hud']:Progress({
            name = data.label and data.label:lower() or 'progress_circle',
            duration = data.duration,
            label = data.label,
            position = data.position or 'middle',
            useWhileDead = data.useWhileDead,
            canCancel = data.canCancel,
            controlDisables = {}, -- Don't change this
        }, function(cancelled)
            if cancelled then
                progress = false
            else
                progress = nil
            end
        end)

        return startProgress(data)
    else
        return false
    end
end
```

## 3. Find the lib.progressBar function and replace it with this:

```lua
function lib.progressBar(data)
    while progress do Wait(100) end

    if not interruptProgress(data) then
        progress = data

        exports['cdw-hud']:Progress({
            name = data.label and data.label:lower() or 'progress_circle',
            duration = data.duration,
            label = data.label,
            position = data.position or 'middle',
            useWhileDead = data.useWhileDead,
            canCancel = data.canCancel,
            controlDisables = {}, -- Don't change this
        }, function(cancelled)
            if cancelled then
                progress = false
            else
                progress = nil
            end
        end)

        return startProgress(data)
    else
        return false
    end
end
```

## 4. Find the lib.cancelProgress function and replace it with this:

<pre class="language-lua"><code class="lang-lua">function lib.cancelProgress()
    if not progress then
        error('No progress bar is active')
    end

    progress = false
<strong>    exports['cdw-hud']:cancelProgress()
</strong>end
</code></pre>
