# getCinematicActor (Client)

> Returns the local element (ped or vehicle) that plays an actor in the current playback.

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

## Syntax

```lua
element|false getCinematicActor(cinematic cinematic, string slot)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `cinematic` | `cinematic` | The cinematic. |
| `slot` | `string` | The actor's name. |

## Returns

The element, or `false` if nothing is playing or the actor is not in the scene.

## Example

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

setTimer(function()
    local hero = getCinematicActor(intro, "hero")
    if hero then
        setElementAlpha(hero, 150)
    end
end, 1000, 1)
```

## See also

- [getCinematicActors (Client)](https://wiki.mymp.gg/en/getCinematicActors.md): Lists the cinematic's actors: the recorded ones and the placed ones.
- [getCinematicActorPose (Client)](https://wiki.mymp.gg/en/getCinematicActorPose.md): Returns where an actor stands at a cinematic time. It needs no playback.
- [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.
