mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-17 06:26:03 +01:00
anothe mistake fix
This commit is contained in:
committed by
GitHub
parent
35bf894213
commit
da27eb3f89
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user