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

Function

isCameraRecording

ClientDrawing (dx)Trilogy Hub only

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)

See also