ADD_CAM_SPLINE_NODE
p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one p8 big values ~100 will slow down the camera movement before reaching this node p9 != 0 seems to override…
Hash
0xF1F57F9D230F9CD1Runtime name
AddCamSplineNodeNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8609C75EC438FB3BSignature
void ADD_CAM_SPLINE_NODE(Cam camera, float x, float y, float z, float xRot, float yRot, float zRot, int length, int p8, int p9);Parameters
| Name | Type | Description |
|---|---|---|
camera | Cam | — |
x | float | — |
y | float | — |
z | float | — |
xRot | float | — |
yRot | float | — |
zRot | float | — |
length | int | — |
p8 | int | — |
p9 | int | — |
Returns void
Description
p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one
p8 big values ~100 will slow down the camera movement before reaching this node
p9 != 0 seems to override the rotation/pitch (bool?)
Usage
AddCamSplineNode(camera, x, y, z, xRot, yRot, zRot, length, p8, p9)
-- always works, by hash
Citizen.InvokeNative(0xF1F57F9D230F9CD1, camera, x, y, z, xRot, yRot, zRot, length, p8, p9)JavaScript and C#
AddCamSplineNode(camera, x, y, z, xRot, yRot, zRot, length, p8, p9);
// by hash
Citizen.invokeNative('0xF1F57F9D230F9CD1', camera, x + 0.0000001, y + 0.0000001, z + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, length, p8, p9);Function.Call((Hash)0xF1F57F9D230F9CD1, camera, x, y, z, xRot, yRot, zRot, length, p8, p9);- 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.
Enums and flags
- eEulerRotationOrder 6 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.