Page cover

Progressbar

1. Navigate to es_extended/client/functions.lua

2. Find the ESX.Progressbar function and replace it with this:

function ESX.Progressbar(message, length, options)
     exports['cdw-hud']:Progress({
        name = "random_id" .. math.random(1, 99999),
        duration = length,
        label = message,
        useWhileDead = Options.useWhileDead,
        canCancel = Options.canCancel,
        controlDisables = Options.FreezePlayer,
        animation = Options.animation, -- ?
        prop = Options.prop,       -- ?
        propTwo = Options.propTwo, -- ?
    }, function(cancelled)
        if not cancelled then
            if Options.onFinish then
                Options.onFinish()
            end
        else
            if Options.onCancel then
                Options.onCancel()
            end
        end
    end)
end

Last updated