# sm.localPlayer.setLockedControls

Sets whether the player's in-game controls are locked.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `locked` | boolean | The lock state. |
