# Progressbar



## 1. Navigate to `qb-core/client/functions.lua`

## 2. Find the QBCore.Functions.Progressbar function and replace it with this:

```lua
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel, icon)
    exports['cdw-hud']:Progress({
        name = name:lower(),
        duration = duration,
        label = label,
        icon = icon,
        useWhileDead = useWhileDead,
        canCancel = canCancel,
        controlDisables = disableControls,
        animation = animation and animation or {},
        prop = prop and prop or {}, 
        propTwo = propTwo and propTwo or {},
    }, function(cancelled)
        if not cancelled then
            if onFinish then
                onFinish()
            end
        else
            if onCancel then
                onCancel()
            end
        end
    end)
end
```
