- Documentation
- Client functions
- getCameraRenderInfo
Function
getCameraRenderInfo
Returns the camera state: state, the number of frames in the texture (frames), measured shots per second (fps), whether the image arrives (ready), whether the attached element disappeared (attachLost) and an error (error).
Syntax
table getCameraRenderInfo(element camera)Arguments
cameraelement- The camera.
Returns
A state table.
Example
local cam = createCameraRender(256, 256)
setTimer(function()
local info = getCameraRenderInfo(cam)
outputChatBox(info.ready and ("Kamera: " .. info.fps .. " kl/s") or "Kamera jeszcze nie gotowa")
end, 2000, 1)