Files
overextended.github.io/docs/ox_inventory/Functions/Server/Inventory/SetMaxWeight.md
T
2023-02-18 18:16:37 +11:00

334 B

Sets the maximum weight available for an inventory.

exports.ox_inventory:SetSlotCount(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:maxWeight(1, 20000)