mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-19 07:26:04 +01:00
a little wait before cancel progbar
This commit is contained in:
committed by
GitHub
parent
a0c83c0e1f
commit
35bf894213
@@ -86,6 +86,7 @@ RegisterNetEvent('jim-consumables:Consume', function(itemName)
|
|||||||
cancelled = true
|
cancelled = true
|
||||||
LocalPlayer.state:set("inv_busy", false, true)
|
LocalPlayer.state:set("inv_busy", false, true)
|
||||||
if Config.UseProgbar then
|
if Config.UseProgbar then
|
||||||
|
Wait(10)
|
||||||
TriggerEvent("progressbar:client:cancel")
|
TriggerEvent("progressbar:client:cancel")
|
||||||
else
|
else
|
||||||
triggerNotify(nil, "Cancelled "..string, "error")
|
triggerNotify(nil, "Cancelled "..string, "error")
|
||||||
|
|||||||
Reference in New Issue
Block a user