RedM Natives

GET_CAM_SPLINE_PHASE

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

Hash0x095EDCD24D90033A
Runtime nameGetCamSplinePhase
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xB5349E36C546509A

Signature

float GET_CAM_SPLINE_PHASE(Cam cam);

Parameters

NameTypeDescription
camCam—

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

Lua
local retval = GetCamSplinePhase(cam)

-- always works, by hash
local retval = Citizen.InvokeNative(0x095EDCD24D90033A, cam, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetCamSplinePhase(cam);

// by hash
const retval = Citizen.invokeNative('0x095EDCD24D90033A', cam, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x095EDCD24D90033A, cam);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.