diff --git a/client/client.lua b/client/client.lua index c6d2f4c..776249d 100644 --- a/client/client.lua +++ b/client/client.lua @@ -172,7 +172,7 @@ RegisterNetEvent(getScript()..':Consume', function(itemName) debugPrint("^5Debug^7: ^3Consume^7: ^2Event already started^7, ^1Cancelling^7.") tempLockInv(false) if Config.UseProgbar then - stopPropgressBar() + stopProgressBar() else triggerNotify(nil, "Stopped "..string, "error") end @@ -208,9 +208,17 @@ RegisterNetEvent(getScript()..':Consume', function(itemName) debugPrint("^5Debug^7: ^3Consume^7: ^2Player Movement Flag^7 - ^6"..json.encode(MovementType).." ^7") if Config.Main.UseProgbar then CreateThread(function() - if progressBar({ time = time, label = string..Items[itemName].label.."..", dead = false, cancel = false}) then + if progressBar({ + time = time, + label = string..Items[itemName].label.."..", + dead = false, + disableMovement = false, + disableCombat = true, + cancel = false + }) then consuming = false else + consuming = false end end) else @@ -273,7 +281,7 @@ RegisterNetEvent(getScript()..':Consume', function(itemName) tempLockInv(false) hideText() if Config.Main.UseProgbar then - stopPropgressBar() + stopProgressBar() else triggerNotify(nil, "Cancelled "..string, "error") end diff --git a/config.lua b/config.lua index aad68cb..fa9eaa5 100644 --- a/config.lua +++ b/config.lua @@ -10,7 +10,7 @@ Config = { }, Main = { - UseProgbar = false, -- Disabled this, progress bars stop all anims when complete. + UseProgbar = false, -- Recommended to disable this, progress bars stop ALL anims when complete. -- This is intended to create a progressbar to show consuming but it was usually forces animations to end weirdly }, Crafting = {