- Documentation
- Client functions
- saveRecording
Function
saveRecording
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)