Client
Qbox progress needs ox_lib started. Without it the bar returns false.
Progress
Parameters
datatabledurationnumber— milliseconds. Defaults to1000.labelstringcanCancelboolean— defaults totrueanimtable—{ dict, clip }disabletable—{ move, car, combat, mouse }
Returns
boolean — true when the bar finishes. false when it is cancelled or no progress provider is selected.
Example
local finished = Bridge.Progress({
duration = 5000,
label = 'Searching',
canCancel = true,
anim = { dict = 'anim@amb@clubhouse@tutorial@bkr_tut_ig3@', clip = 'machinic_loop_mechandplayer' },
disable = { move = true, car = true, combat = true, mouse = false },
})
if not finished then
return
end
Bridge.Notify({ description = 'Search finished', kind = 'success' })