π§Installation Progress
This page explains how to integrate the 'Sweepz_Ui_Elements' script's progress bar system into other systems.
File Location: qb-core/client/functions.lua
Line Number: 192
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel)
if GetResourceState('Sweepz_Ui_Elements') ~= 'started' then error('Sweepz_Ui_Elements needs to be started in order for QBCore.Functions.Progressbar to work') end
exports['Sweepz_Ui_Elements']: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)
endFile Location: es_extended/client/functions.lua
Line Number: 144
File Location: ox_lib/resource/interface/client/progress.lua
Replace the entire file with the code we provided.
Last updated