M MY Multiplayer: Wiki
Side
Kind

getCinematicData

Client

Returns the whole cinematic as .cine bytes, which createCinematic reads back.

string|false getCinematicData(cinematic cinematic)

Parameters

NameTypeDescription
cinematiccinematicThe cinematic.

Returns

A string with the bytes, or false if the element is not a cinematic, it is still recording or it could not be written.

Example

local function saveCinematic(cinematic, path)
    local data = getCinematicData(cinematic)
    if not data then
        return false
    end
    local file = fileCreate(path)
    fileWrite(file, data)
    fileClose(file)
    return true
end

See also