setCinematicPaused
Client
Pauses or resumes the cinematic's playback. While paused, the clones hold their animations, vehicles freeze and sounds pause.
bool setCinematicPaused(cinematic cinematic, bool paused)
Parameters
| Name | Type | Description |
|---|---|---|
| cinematic | cinematic | The cinematic. |
| paused | bool | true to pause, false to resume. |
Returns
true if it changed, false if the cinematic is not playing or is recording.
Example
local intro = createCinematic("cinematics/intro.cine")
playCinematic(intro)
bindKey("p", "down", function()
setCinematicPaused(intro, not isCinematicPaused(intro))
end)