Merge pull request #1343 from tomson701/patch-1

fix: ox_inventory setMaxWeight client-side sync
This commit is contained in:
Gellipapa
2024-04-13 20:22:48 +02:00
committed by GitHub
@@ -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,