mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-26 04:44:45 +00:00
refactor(client/progress): allow all progress bars to be cancelled
canCancel should really only apply to user-input.
This commit is contained in:
1 parent
5e4d36d1ab
commit
f9a6d8ca8b
1 file changed
-2
@@ -196,8 +196,6 @@ end
|
|||||||
function lib.cancelProgress()
|
function lib.cancelProgress()
|
||||||
if not progress then
|
if not progress then
|
||||||
error('No progress bar is active')
|
error('No progress bar is active')
|
||||||
elseif not progress.canCancel then
|
|
||||||
error('Progress bar cannot be cancelled')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
progress = false
|
progress = false
|
||||||
|
|||||||
Reference in new issue
Block a user