M MY Multiplayer: Wiki
Side
Kind

stopCinematic

Client

Stops the cinematic's playback. The clones go away and the weather, hour and fade go back to what the world had.

bool stopCinematic(cinematic cinematic)

Parameters

NameTypeDescription
cinematiccinematicThe cinematic.

Returns

true if it stopped, false if the cinematic was not playing or is recording.

Example

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

bindKey("space", "down", function()
    stopCinematic(intro)
end)
NoteStopping with this function does not fire onClientCinematicFinish.

See also