string|false getCinematicData(cinematic cinematic)
Parameters
| Name | Type | Description |
|---|---|---|
| cinematic | cinematic | The 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