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

> Ruft das eigene Inventar des Spielers ab.

Ruft das eigene Inventar des Spielers ab.

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

### Parameter

Keine.

### Rückgabewert

| Name        | Datentyp | Beschreibung                     |
| ----------- | -------- | -------------------------------- |
| `inventory` | table    | Das eigene Inventar des Spielers |


## Related topics

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