mirror of
https://github.com/jimathy/jim-consumables.git
synced 2026-08-17 06:26:03 +01:00
progressbar fix unloading props
This commit is contained in:
committed by
GitHub
parent
cec8165556
commit
909dd3ad19
@@ -75,7 +75,7 @@ RegisterNetEvent('jim-consumables:Consume', function(itemName)
|
|||||||
TaskPlayAnim(PlayerPedId(), animDict, anim, 1.0, 1.0, -1, MovementType, 0, 0, 0, 0)
|
TaskPlayAnim(PlayerPedId(), animDict, anim, 1.0, 1.0, -1, MovementType, 0, 0, 0, 0)
|
||||||
|
|
||||||
if Config.UseProgbar then
|
if Config.UseProgbar then
|
||||||
QBCore.Functions.Progressbar('jimmy_consume_', string..QBCore.Shared.Items[itemName].label.."..", time, false, false, {disableMovement = false,disableCarMovement = false,disableMouse = false,disableCombat = true,}, {}, {}, {}, function() end, function() end, itemName)
|
QBCore.Functions.Progressbar('jimmy_consume_', string..QBCore.Shared.Items[itemName].label.."..", time, false, false, {disableMovement = false, disableCarMovement = false, disableMouse = false, disableCombat = true,}, {}, {}, {}, function() consuming = false end, function() end, itemName)
|
||||||
else
|
else
|
||||||
triggerNotify(nil, string..QBCore.Shared.Items[itemName].label.."..", "success")
|
triggerNotify(nil, string..QBCore.Shared.Items[itemName].label.."..", "success")
|
||||||
end
|
end
|
||||||
@@ -104,7 +104,6 @@ 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