# setTimeFrozen (Client)

> Freezes or unfreezes the game clock on this client. While frozen the time does not advance, but `setTime` still changes it.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: World and weather
- **URL**: https://wiki.mymp.gg/en/setTimeFrozen

## Syntax

```lua
bool setTimeFrozen(bool frozen)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `frozen` | `bool` | `true` to freeze, `false` to let the clock run again. |

## Returns

`true` once the state is set.

## Example

```lua
setTime(21, 30)
setTimeFrozen(true)
```

## See also

- [isTimeFrozen (Client)](https://wiki.mymp.gg/en/isTimeFrozen.md): Tells whether the game clock is frozen on this client.
- [setTime (Client)](https://wiki.mymp.gg/en/setTime-client.md): Changes the game time on this client. The clock keeps running from there.
- [setMinuteDuration (Client)](https://wiki.mymp.gg/en/setMinuteDuration-client.md): Sets how much real time one game minute lasts on this client.
