ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. saveRecording

Function

saveRecording

ClientDrawing (dx)Trilogy Hub only

Saves a recording to an AVI file in the resource (overwrites an existing one, like fileCreate).

Syntax

bool saveRecording(element recording, string filePath)

Arguments

recordingelement
The recording.
filePathstring
The file path.

Returns

true if everything was saved.

Example

local cam = createCameraRender(320, 180, 15)
local rec = startCameraRecording(cam, 15, 5)
setTimer(function()
    saveRecording(rec, "powtorki/" .. getRealTime().timestamp .. ".avi")
end, 6000, 1)

See also