> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set inventory max weight

> Sets the maximum weight capacity for an inventory.

Sets the maximum weight capacity for an inventory.

<CodeGroup>
  ```lua Export theme={null}
  exports['jaksam_inventory']:setInventoryMaxWeight(inventoryId, maxWeight)
  ```

  ```lua Example theme={null}
  -- Set player inventory max weight
  exports['jaksam_inventory']:setInventoryMaxWeight(1, 100)

  -- Set stash max weight
  exports['jaksam_inventory']:setInventoryMaxWeight('police_stash_1', 500)
  ```
</CodeGroup>

### Parameters

| Name          | Data Type        | Description                     |
| ------------- | ---------------- | ------------------------------- |
| `inventoryId` | string \| number | The inventory ID to modify      |
| `maxWeight`   | number           | The new maximum weight capacity |

### Return value

| Name      | Data Type | Description                         |
| --------- | --------- | ----------------------------------- |
| `success` | boolean   | True if weight was set successfully |


## Related topics

- [Server](/jaksam-inventory/functions/server/index.md)
- [Get inventory](/jaksam-inventory/functions/server/get-inventory.md)
- [Get vehicle inventory limits](/jaksam-inventory/functions/client/get-vehicle-inventory-limits.md)
- [Create inventory](/jaksam-inventory/functions/server/create-inventory.md)
- [Get static items list](/jaksam-inventory/functions/shared/get-static-items-list.md)
