Page cover

loaderProgressbar

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

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

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:

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

Last updated