fix ox_inv current inventory weight check

This commit is contained in:
Jim Shield
2025-09-23 15:05:46 +01:00
parent 9fa8f58cfb
commit 6166314cbf

View File

@@ -56,7 +56,7 @@ local InvFunc = {
local weight = 0
local itemcheck = getPlayerInv(src)
for _, v in pairs(itemcheck) do
weight += ((v.weight * v.amount) or 0)
weight += ((v.weight * (v.amount or v.count)) or 0)
end
return weight
end,