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

Function

getRecordingData

ClientDrawing (dx)Trilogy Hub only

Returns the whole recording as an AVI (MJPEG) file in a string, e.g. for fileWrite, sending to the server or createRecordingFromData.

Syntax

string getRecordingData(element recording)

Arguments

recordingelement
The recording.

Returns

AVI data or false.

Example

local rec = loadRecording("powtorki/ostatnia.avi")
if rec then triggerServerEvent("onReplayUpload", localPlayer, getRecordingData(rec)) end

See also