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