# getCinematicCaptions (Client)

> Returns the cinematic's captions.

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

## Syntax

```lua
table|false getCinematicCaptions(cinematic cinematic)
```

## Parameters

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

## Returns

The list of captions in the format `setCinematicCaptions` takes, or `false` if the element is not a cinematic. Each `font` comes as `@resource/path`.

## Example

```lua
local intro = createCinematic("cinematics/intro.cine")
for _, caption in ipairs(getCinematicCaptions(intro)) do
    outputDebugString(("%d ms: %s"):format(caption.time, caption.text))
end
```

## See also

- [setCinematicCaptions (Client)](https://wiki.mymp.gg/en/setCinematicCaptions.md): Sets the captions the cinematic draws on screen during playback. It replaces the earlier captions.
- [getCinematicAudio (Client)](https://wiki.mymp.gg/en/getCinematicAudio.md): Returns the cinematic's sounds.
