# sm.localPlayer.getInventory

Returns the inventory container of the local player.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.localPlayer.getInventory(  )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.localPlayer.md#getinventory)

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| [Container](../Game-Script-Environment/Userdata/Container.md) | The player's inventory. |
