From da27eb3f8974c4e695bb68be2e89ee20258ae85f Mon Sep 17 00:00:00 2001 From: Atikur Rahaman Santo <55808925+ARSSANTO@users.noreply.github.com> Date: Fri, 26 Aug 2022 21:54:37 +0600 Subject: [PATCH] anothe mistake fix --- client/client.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/client.lua b/client/client.lua index f08709b..662b6ff 100644 --- a/client/client.lua +++ b/client/client.lua @@ -40,7 +40,11 @@ RegisterNetEvent('jim-consumables:Consume', function(itemName) cancelled = true if Config.Debug then print("^5Debug^7: ^3Consume^7: ^2Event already started^7, ^1Cancelling^7.") end LocalPlayer.state:set("inv_busy", false, true) - triggerNotify(nil, "Stopped "..string, "error") + if Config.UseProgbar then + TriggerEvent("progressbar:client:cancel") + else + triggerNotify(nil, "Stopped "..string, "error") + end consuming = not consuming return end