Find the "function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel)" and replace it with the following
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel)
exports['tgiann-lumihud']:Progress({
name = name:lower(),
duration = duration,
label = label,
useWhileDead = useWhileDead,
canCancel = canCancel,
controlDisables = disableControls,
animation = animation,
prop = prop,
propTwo = propTwo,
}, function(cancelled)
if not cancelled then
if onFinish then
onFinish()
end
else
if onCancel then
onCancel()
end
end
end)
end
ESX
Open "es_extended\client\functions.lua" file
Find the "ESX.Progressbar(message, length, Options)" and replace it with the following
exports['tgiann-lumihud']: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)