make sure its 100% canceled

This commit is contained in:
Mycroft
2022-08-07 00:20:16 +01:00
parent 12a5be0725
commit 81b174b502
+1 -1
View File
@@ -26,12 +26,12 @@ local function Progressbar(message,length,Options)
SendNuiMessage(json.encode({
type = "Close"
}))
le = 0
ClearPedTasks(ESX.PlayerData.ped)
if Options.FreezePlayer then FreezeEntityPosition(PlayerPedId(), false) end
if Options.onFinish then Options.onFinish() end
InProgress = false
Options.onCancel()
le = 0
break
end
end