M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
cinematiccinematicThe cinematic.
timeintCinematic 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)

See also