CameraClient

getCamSplinePhase

GET_CAM_SPLINE_PHASE0xB5349E36C546509A

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

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

Usage

JavaScript
const value = getCamSplinePhase(cam);
Lua
local value = getCamSplinePhase(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.

Can use this with setCamSplinePhase to set the float it this native returns.

(returns 1.0f when no nodes has been added, reached end of non existing spline)

Reference

Namespace
Camera CAM
In the game
float GET_CAM_SPLINE_PHASE(Cam cam)
Hash
0xB5349E36C546509A

Open in the interactive natives reference