Copy 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
Copy 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 )