From 598c2f7c9fa34d7a6052c9bb92dfc15203622404 Mon Sep 17 00:00:00 2001 From: Gellipapa Date: Mon, 16 Oct 2023 23:49:10 +0200 Subject: [PATCH] :wrench: Add missing onCancel callback method to progressbar --- [core]/esx_progressbar/Progress.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/[core]/esx_progressbar/Progress.lua b/[core]/esx_progressbar/Progress.lua index abcffec7..c457da41 100644 --- a/[core]/esx_progressbar/Progress.lua +++ b/[core]/esx_progressbar/Progress.lua @@ -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