# getCinematicPosition (Client)

> Returns which cinematic time the playback is at.

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

## Syntax

```lua
int|false getCinematicPosition(cinematic cinematic)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `cinematic` | `cinematic` | The cinematic. |

## Returns

The time in ms, or `false` if nothing of the cinematic is playing.

## Example

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

addEventHandler("onClientRender", root, function()
    local now = getCinematicPosition(intro)
    local length = getCinematicDuration(intro)
    if now and length > 0 then
        dxDrawRectangle(0, 0, 400 * now / length, 4, tocolor(255, 255, 255))
    end
end)
```

## See also

- [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.
- [getCinematicDuration (Client)](https://wiki.mymp.gg/en/getCinematicDuration.md): Returns how long the cinematic lasts.
- [isCinematicPaused (Client)](https://wiki.mymp.gg/en/isCinematicPaused.md): Tells whether the cinematic's playback is paused.
