a little wait before cancel progbar

This commit is contained in:
Atikur Rahaman Santo
2022-08-26 06:19:38 +06:00
committed by GitHub
parent a0c83c0e1f
commit 35bf894213

View File

@@ -86,6 +86,7 @@ RegisterNetEvent('jim-consumables:Consume', function(itemName)
cancelled = true
LocalPlayer.state:set("inv_busy", false, true)
if Config.UseProgbar then
Wait(10)
TriggerEvent("progressbar:client:cancel")
else
triggerNotify(nil, "Cancelled "..string, "error")