playCinematic
Client
Plays the cinematic: the actors as local clones, plus the camera, weather, hour, fade, sounds and captions.
bool playCinematic(cinematic cinematic [, int from = 0])
Parameters
| Name | Type | Description |
|---|---|---|
| cinematic | cinematic | The cinematic. |
| from | int | Cinematic time, in ms, to start from.default 0 |
Returns
true if it started, false if the cinematic is recording, already playing or empty.
Each actor is a local ped or vehicle that stands where its take puts it on every frame. When it ends, the weather, hour and fade go back to what the world had, and onClientCinematicFinish fires.
Example
local intro = createCinematic("cinematics/intro.cine")
addCommandHandler("intro", function()
playCinematic(intro)
end)