CameraClient

setCamActive

SET_CAM_ACTIVE0x026FB97D0A425F84

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

SignatureJavaScript
setCamActive(cam: Cam, active: boolean): void
SignatureLua
setCamActive(cam: Cam, active: boolean)

Usage

JavaScript
setCamActive(cam, active);
Lua
setCamActive(cam, active)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
activeBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Set camera as active/inactive.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_ACTIVE(Cam cam, BOOL active)
Hash
0x026FB97D0A425F84

Open in the interactive natives reference