# sm.localPlayer.getSelectedHotbarSlot

Returns the local player's selected slot.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| integer | The player's selected slot. |
