GET_CAM_SPLINE_PHASE
Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns.
Hash
0x095EDCD24D90033ARuntime name
GetCamSplinePhaseNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB5349E36C546509ASignature
float GET_CAM_SPLINE_PHASE(Cam cam);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
Returns float
Description
Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns.
(returns 1.0f when no nodes has been added, reached end of non existing spline)
Usage
local retval = GetCamSplinePhase(cam)
-- always works, by hash
local retval = Citizen.InvokeNative(0x095EDCD24D90033A, cam, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetCamSplinePhase(cam);
// by hash
const retval = Citizen.invokeNative('0x095EDCD24D90033A', cam, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x095EDCD24D90033A, cam);See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.