From 6166314cbfc5b63dc828797860d9689221ac7653 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 23 Sep 2025 15:05:46 +0100 Subject: [PATCH] fix ox_inv current inventory weight check --- shared/itemcontrol.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/itemcontrol.lua b/shared/itemcontrol.lua index 7e1592e..e24a6be 100644 --- a/shared/itemcontrol.lua +++ b/shared/itemcontrol.lua @@ -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,