mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05: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 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,
|
||||
|
||||
Reference in New Issue
Block a user