anothe mistake fix

This commit is contained in:
Atikur Rahaman Santo
2022-08-26 21:54:37 +06:00
committed by GitHub
parent 35bf894213
commit da27eb3f89

View File

@@ -40,7 +40,11 @@ RegisterNetEvent('jim-consumables:Consume', function(itemName)
cancelled = true cancelled = true
if Config.Debug then print("^5Debug^7: ^3Consume^7: ^2Event already started^7, ^1Cancelling^7.") end if Config.Debug then print("^5Debug^7: ^3Consume^7: ^2Event already started^7, ^1Cancelling^7.") end
LocalPlayer.state:set("inv_busy", false, true) 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 consuming = not consuming
return return
end end