CameraClient

addCamSplineNodeUsingCamera

ADD_CAM_SPLINE_NODE_USING_CAMERA0x0FB82563989CF4FB

The GTA V native ADD_CAM_SPLINE_NODE_USING_CAMERA of the CAM namespace, as LS:MP client scripts call it: the global function addCamSplineNodeUsingCamera, in JavaScript and in Lua.

SignatureJavaScript
addCamSplineNodeUsingCamera(
  cam: Cam,
  cam2: Cam,
  length: number,
  p3: number
): void
SignatureLua
addCamSplineNodeUsingCamera(
  cam: Cam,
  cam2: Cam,
  length: integer,
  p3: integer
)

Usage

JavaScript
addCamSplineNodeUsingCamera(cam, cam2, length, p3);
Lua
addCamSplineNodeUsingCamera(cam, cam2, length, p3)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
cam2Camnumberinteger
lengthintnumberinteger
p3intnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

p0 is the spline camera to which the node is being added.
p1 is the camera used to create the node.
p3 is always 3 in scripts. It might be smoothing style or rotation order.

Reference

Namespace
Camera CAM
In the game
void ADD_CAM_SPLINE_NODE_USING_CAMERA(Cam cam, Cam cam2, int length, int p3)
Hash
0x0FB82563989CF4FB

Open in the interactive natives reference