- Documentation
- Client functions
- isCameraRecording
Function
isCameraRecording
Checks whether the recording is still running (it stops by itself after the maximum time, a memory limit or when the camera is removed).
Syntax
bool isCameraRecording(element recording)Arguments
recordingelement- The recording.
Returns
true while recording.
Example
local cam = createCameraRender(320, 180, 15)
local rec = startCameraRecording(cam)
addEventHandler("onClientRender", root, function()
if isCameraRecording(rec) then dxDrawText("REC", 20, 20, 0, 0, tocolor(255, 0, 0)) end
end)