CameraClient

isCamActive

IS_CAM_ACTIVE0xDFB2B516207D3534

The GTA V native IS_CAM_ACTIVE of the CAM namespace, as LS:MP client scripts call it: the global function isCamActive, in JavaScript and in Lua.

SignatureJavaScript
isCamActive(cam: Cam): boolean
SignatureLua
isCamActive(cam: Cam): boolean

Usage

JavaScript
const result = isCamActive(cam);
Lua
local result = isCamActive(cam)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns whether or not the passed camera handle is active.

Reference

Namespace
Camera CAM
In the game
BOOL IS_CAM_ACTIVE(Cam cam)
Hash
0xDFB2B516207D3534

Open in the interactive natives reference