setCinematicPosition
Client
Jumps the playback to another time of the cinematic. The clones are kept; each is set back on its sample and in or out of its vehicle as its take has it.
bool setCinematicPosition(cinematic cinematic, int time)
Parameters
| Name | Type | Description |
|---|---|---|
| cinematic | cinematic | The cinematic. |
| time | int | Cinematic time in ms, from 0 up. |
Returns
true if it jumped, false if the cinematic is not playing or is recording.
Example
local intro = createCinematic("cinematics/intro.cine")
playCinematic(intro)
bindKey("arrow_r", "down", function()
local now = getCinematicPosition(intro)
if now then
setCinematicPosition(intro, now + 5000)
end
end)