# setMinuteDuration (Client)

> Sets how much real time one game minute lasts on this client.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: World and weather
- **URL**: https://wiki.mymp.gg/en/setMinuteDuration-client
- **Counterpart**: Also exists on the server, with its own implementation: [setMinuteDuration (Server)](https://wiki.mymp.gg/en/setMinuteDuration-server.md)

## Syntax

```lua
bool setMinuteDuration(float milliseconds)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `milliseconds` | `float` | How long one game minute lasts, in milliseconds. Zero or less stops the clock. |

## Returns

`true` once the duration is set.

## Example

```lua
setMinuteDuration(60000) -- the game clock runs at real time
```

## See also

- [getMinuteDuration (Client)](https://wiki.mymp.gg/en/getMinuteDuration-client.md): Returns how much real time one game minute lasts on this client.
- [setTimeFrozen (Client)](https://wiki.mymp.gg/en/setTimeFrozen.md): Freezes or unfreezes the game clock on this client. While frozen the time does not advance, but setTime still changes it.
- [setTime (Client)](https://wiki.mymp.gg/en/setTime-client.md): Changes the game time on this client. The clock keeps running from there.
