> ## 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.

# Get inventory

> Gets the player's self inventory.

Gets the player's self inventory.

<CodeGroup>
  ```lua Export theme={null}
  exports['jaksam_inventory']:getInventory()
  ```

  ```lua Example theme={null}
  local inventory = exports['jaksam_inventory']:getInventory()

  print(json.encode(inventory, {indent = true}))
  --[[
  {
      "id": "SIV35463",
      "limits": {
          "maxSlots": 20,
          "maxWeight": 30
      },
      "items": {
          "SLOT-3": {
              "name": "money",
              "amount": 4402
          },
          "SLOT-1": {
              "name": "weapon_advancedrifle",
              "metadata": {
                  "serial": "TSK-24895-LFN"
              },
              "amount": 1
          },
      },
      "label": "Inventory",
      "totalWeight": 21.0,
  }
  ]]
  ```
</CodeGroup>

### Parameters

None.

### Return value

| Name        | Data Type | Description                 |
| ----------- | --------- | --------------------------- |
| `inventory` | table     | The player's self inventory |


## Related topics

- [Get inventory](/jaksam-inventory/functions/server/get-inventory.md)
- [Get inventory ID from plate](/jaksam-inventory/functions/server/get-inventory-id-from-plate.md)
- [Client](/jaksam-inventory/functions/client/index.md)
- [Server](/jaksam-inventory/functions/server/index.md)
- [Get vehicle inventory limits](/jaksam-inventory/functions/client/get-vehicle-inventory-limits.md)
