getCamSplinePhase
GET_CAM_SPLINE_PHASE0xB5349E36C546509AThe 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.
getCamSplinePhase(cam: Cam): numbergetCamSplinePhase(cam: Cam): numberUsage
JavaScript
const value = getCamSplinePhase(cam);Lua
local value = getCamSplinePhase(cam)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cam | Cam | number | integer |
Returns
float JavaScript number, Lua numberNotes
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