# setCinematicPaused (Client)

> Pauses or resumes the cinematic's playback. While paused, the clones hold their animations, vehicles freeze and sounds pause.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Cinematics
- **URL**: https://wiki.mymp.gg/en/setCinematicPaused

## Syntax

```lua
bool setCinematicPaused(cinematic cinematic, bool paused)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `cinematic` | `cinematic` | The cinematic. |
| `paused` | `bool` | `true` to pause, `false` to resume. |

## Returns

`true` if it changed, `false` if the cinematic is not playing or is recording.

## Example

```lua
local intro = createCinematic("cinematics/intro.cine")
playCinematic(intro)

bindKey("p", "down", function()
    setCinematicPaused(intro, not isCinematicPaused(intro))
end)
```

## See also

- [isCinematicPaused (Client)](https://wiki.mymp.gg/en/isCinematicPaused.md): Tells whether the cinematic's playback is paused.
- [playCinematic (Client)](https://wiki.mymp.gg/en/playCinematic.md): Plays the cinematic: the actors as local clones, plus the camera, weather, hour, fade, sounds and captions.
- [setCinematicPosition (Client)](https://wiki.mymp.gg/en/setCinematicPosition.md): Jumps the playback to another time of the cinematic. The clones are kept; each is set back on its sample and in or out of its vehicle as its take has it.
