CameraClient

setCinematicModeActive

SET_CINEMATIC_MODE_ACTIVE0xDCF0754AC3D6FD4E

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

SignatureJavaScript
setCinematicModeActive(toggle: boolean): void
SignatureLua
setCinematicModeActive(toggle: boolean)

Usage

JavaScript
setCinematicModeActive(toggle);
Lua
setCinematicModeActive(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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.

Toggles the vehicle cinematic cam; requires the player ped to be in a vehicle to work.

Reference

Namespace
Camera CAM
In the game
void SET_CINEMATIC_MODE_ACTIVE(BOOL toggle)
Hash
0xDCF0754AC3D6FD4E

Open in the interactive natives reference