mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
refactor(client/progress): don't clear progress on cancel
Sending "progressCancel" to NUI will cause a transition and then trigger "progressComplete" with a slight delay (~100ms). Should look better when people queue up progress bars.
This commit is contained in:
@@ -147,10 +147,8 @@ local function startProgress(data)
|
||||
end
|
||||
|
||||
playerState.invBusy = false
|
||||
local cancel = progress == false
|
||||
progress = nil
|
||||
|
||||
if cancel then
|
||||
if progress == false then
|
||||
SendNUIMessage({ action = 'progressCancel' })
|
||||
return false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user