mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 14:56:02 +01:00
fix ox_inv current inventory weight check
This commit is contained in:
@@ -56,7 +56,7 @@ local InvFunc = {
|
|||||||
local weight = 0
|
local weight = 0
|
||||||
local itemcheck = getPlayerInv(src)
|
local itemcheck = getPlayerInv(src)
|
||||||
for _, v in pairs(itemcheck) do
|
for _, v in pairs(itemcheck) do
|
||||||
weight += ((v.weight * v.amount) or 0)
|
weight += ((v.weight * (v.amount or v.count)) or 0)
|
||||||
end
|
end
|
||||||
return weight
|
return weight
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user