mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
🔧 Add missing onCancel callback method to progressbar
This commit is contained in:
@@ -42,6 +42,7 @@ local function CancelProgressbar()
|
||||
})
|
||||
ClearPedTasks(ESX.PlayerData.ped)
|
||||
if CurrentProgress.FreezePlayer then FreezeEntityPosition(PlayerPedId(), false) end
|
||||
if CurrentProgress.onCancel then CurrentProgress.onCancel() end
|
||||
CurrentProgress.canceled = true
|
||||
CurrentProgress.length = 0
|
||||
CurrentProgress = nil
|
||||
|
||||
Reference in New Issue
Block a user