# setCinematicPosition (Client)

> 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.

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

## Syntax

```lua
bool setCinematicPosition(cinematic cinematic, int time)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `cinematic` | `cinematic` | The cinematic. |
| `time` | `int` | Cinematic time in ms, from 0 up. |

## Returns

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

## Example

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

bindKey("arrow_r", "down", function()
    local now = getCinematicPosition(intro)
    if now then
        setCinematicPosition(intro, now + 5000)
    end
end)
```

## See also

- [getCinematicPosition (Client)](https://wiki.mymp.gg/en/getCinematicPosition.md): Returns which cinematic time the playback is at.
- [getCinematicDuration (Client)](https://wiki.mymp.gg/en/getCinematicDuration.md): Returns how long the cinematic lasts.
- [setCinematicPaused (Client)](https://wiki.mymp.gg/en/setCinematicPaused.md): Pauses or resumes the cinematic's playback. While paused, the clones hold their animations, vehicles freeze and sounds pause.
- [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.
