CameraClient

createCam

CREATE_CAM0xC3981DCE61D9E13F

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

SignatureJavaScript
createCam(camName: string, p1: boolean): Cam
SignatureLua
createCam(camName: string, p1: boolean): Cam

Usage

JavaScript
const cam = createCam(camName, p1);
Lua
local cam = createCam(camName, p1)

Parameters

ParameterTypeJavaScriptLua
camNamestringstringstring
p1BOOLbooleanboolean

Returns

Cam JavaScript number, Lua integer

Handle of a scripted camera.

Notes

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

"DEFAULT_SCRIPTED_CAMERA"
"DEFAULT_ANIMATED_CAMERA"
"DEFAULT_SPLINE_CAMERA"
"DEFAULT_SCRIPTED_FLY_CAMERA"
"TIMED_SPLINE_CAMERA"

Reference

Namespace
Camera CAM
In the game
Cam CREATE_CAM(const char* camName, BOOL p1)
Hash
0xC3981DCE61D9E13F

Open in the interactive natives reference