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

> Récupère l'inventaire personnel du joueur.

Récupère l'inventaire personnel du joueur.

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

### Paramètres

Aucun.

### Valeur de retour

| Nom | Type de donnée | Description |
| - | - | - |
| `inventory` | table | L'inventaire personnel du joueur |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.