SET_CAM_SPLINE_PHASE
Hash
0xF1898A68E7C15636Runtime name
SetCamSplinePhaseNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x242B5874F0A4E052Signature
void SET_CAM_SPLINE_PHASE(Cam cam, float p1);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
p1 | float | — |
Returns void
Usage
SetCamSplinePhase(cam, p1)
-- always works, by hash
Citizen.InvokeNative(0xF1898A68E7C15636, cam, p1)JavaScript and C#
SetCamSplinePhase(cam, p1);
// by hash
Citizen.invokeNative('0xF1898A68E7C15636', cam, p1 + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
GET_CAM_SPLINE_PHASECan use this with SET_CAM_SPLINE_PHASE to set the float it this native returns.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.