RedM Natives

SET_CAM_SPLINE_PHASE

Hash0xF1898A68E7C15636
Runtime nameSetCamSplinePhase
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x242B5874F0A4E052

Signature

void SET_CAM_SPLINE_PHASE(Cam cam, float p1);

Parameters

NameTypeDescription
camCam—
p1float—

Returns void

Usage

Lua
SetCamSplinePhase(cam, p1)

-- always works, by hash
Citizen.InvokeNative(0xF1898A68E7C15636, cam, p1)
JavaScript and C#
JavaScript
SetCamSplinePhase(cam, p1);

// by hash
Citizen.invokeNative('0xF1898A68E7C15636', cam, p1 + 0.0000001);
C#
Function.Call((Hash)0xF1898A68E7C15636, cam, p1);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

See also

Sources

alloc8or RDR3 NativeDB

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