# sm.localPlayer.getId

Returns the unique player id of the local player.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| integer | The player's id. |
