mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
refactor(client/progress): allow all progress bars to be cancelled
canCancel should really only apply to user-input.
This commit is contained in:
@@ -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