🔧 Add missing onCancel callback method to progressbar

This commit is contained in:
Gellipapa
2023-10-16 23:49:10 +02:00
parent d2ac393255
commit 598c2f7c9f
+1
View File
@@ -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