CameraClient

getCamSplineNodeIndex

GET_CAM_SPLINE_NODE_INDEX0xB22B17DF858716A6

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

SignatureJavaScript
getCamSplineNodeIndex(cam: Cam): number
SignatureLua
getCamSplineNodeIndex(cam: Cam): integer

Usage

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

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Camera CAM
In the game
int GET_CAM_SPLINE_NODE_INDEX(Cam cam)
Hash
0xB22B17DF858716A6

Open in the interactive natives reference