# getCinematicWorld (Client)

> Returns the cinematic's weather, hour and fade keys.

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

## Syntax

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

## Parameters

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

## Returns

A `{ weather, clock, fades }` table in the format `setCinematicWorld` takes, or `false` if the element is not a cinematic.

## Example

```lua
local intro = createCinematic("cinematics/intro.cine")
local world = getCinematicWorld(intro)
for _, key in ipairs(world.weather) do
    outputDebugString(("%d ms: %s"):format(key.time, key.name))
end
```

## See also

- [setCinematicWorld (Client)](https://wiki.mymp.gg/en/setCinematicWorld.md): Sets the weather, hour and screen fade keys the cinematic applies during playback. It replaces the earlier keys.
- [getCinematicDuration (Client)](https://wiki.mymp.gg/en/getCinematicDuration.md): Returns how long the cinematic lasts.
