Files
overextended.github.io/docs/ox_inventory/Functions/Server/Inventory/SetMaxWeight.md
T
2023-02-24 13:49:56 +11:00

337 B

Sets the maximum weight available for an inventory.

exports.ox_inventory:SetMaxWeight(inv, maxWeight)
  • inv: string or number or table
  • maxWeight: number

Example:

local ox_inventory = exports.ox_inventory

-- Set the max weight for player 1's inventory to 20kg.
ox_inventory:SetMaxWeight(1, 20000)