fix: ox_inventory setMaxWeight client-side sync

This commit is contained in:
Tomson701
2024-04-07 14:31:30 +02:00
committed by GitHub
parent b887903c43
commit bea5236eb9
@@ -140,7 +140,7 @@ Core.PlayerFunctionOverrides.OxInventory = {
return function(newWeight)
self.maxWeight = newWeight
self.triggerEvent("esx:setMaxWeight", self.maxWeight)
return Inventory.Set(self.source, "maxWeight", newWeight)
return Inventory.SetMaxWeight(self.source, newWeight)
end
end,