CameraClient

getCamSplineNodePhase

GET_CAM_SPLINE_NODE_PHASE0xD9D0E694C8282C96

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

SignatureJavaScript
getCamSplineNodePhase(cam: Cam): number
SignatureLua
getCamSplineNodePhase(cam: Cam): number

Usage

JavaScript
const value = getCamSplineNodePhase(cam);
Lua
local value = getCamSplineNodePhase(cam)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger

Returns

float JavaScript number, Lua number

Notes

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

I'm pretty sure the parameter is the camera as usual, but I am not certain so I'm going to leave it as is.

Reference

Namespace
Camera CAM
In the game
float GET_CAM_SPLINE_NODE_PHASE(Cam cam)
Hash
0xD9D0E694C8282C96

Open in the interactive natives reference