This commit is contained in:
Jim Shield
2025-03-08 20:55:05 +00:00
committed by GitHub
parent 6bfb549fd0
commit 83ba74bc12
6 changed files with 21 additions and 37 deletions

View File

@@ -354,7 +354,7 @@ function getDurability(item)
local durability = nil
if isStarted(QBInv) or isStarted(PSInv) then
local itemcheck = Core.Functions.GetPlayerData().items
for _, v in pairs(itemcheck) do
for k, v in pairs(itemcheck) do
if v.name == item then
if v.slot <= lowestSlot then
lowestSlot = v.slot
@@ -366,7 +366,7 @@ function getDurability(item)
if isStarted(OXInv) then
local itemcheck = exports[OXInv]:Search('slots', item)
for _, v in pairs(itemcheck) do
for k, v in pairs(itemcheck) do
if v.slot <= lowestSlot then
debugPrint(v.slot, itemcheck[k].metadata.durability)
lowestSlot = v.slot