CameraClient

doesCamExist

DOES_CAM_EXIST0xA7A932170592B50E

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

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

Usage

JavaScript
const result = doesCamExist(cam);
Lua
local result = doesCamExist(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 exists.

Reference

Namespace
Camera CAM
In the game
BOOL DOES_CAM_EXIST(Cam cam)
Hash
0xA7A932170592B50E

Open in the interactive natives reference