mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Merge pull request #1343 from tomson701/patch-1
fix: ox_inventory setMaxWeight client-side sync
This commit is contained in:
@@ -140,7 +140,7 @@ Core.PlayerFunctionOverrides.OxInventory = {
|
|||||||
return function(newWeight)
|
return function(newWeight)
|
||||||
self.maxWeight = newWeight
|
self.maxWeight = newWeight
|
||||||
self.triggerEvent("esx:setMaxWeight", self.maxWeight)
|
self.triggerEvent("esx:setMaxWeight", self.maxWeight)
|
||||||
return Inventory.Set(self.source, "maxWeight", newWeight)
|
return Inventory.SetMaxWeight(self.source, newWeight)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user