CameraClient

addCamSplineNodeUsingGameplayFrame

ADD_CAM_SPLINE_NODE_USING_GAMEPLAY_FRAME0x609278246A29CA34

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

SignatureJavaScript
addCamSplineNodeUsingGameplayFrame(cam: Cam, length: number, p2: number): void
SignatureLua
addCamSplineNodeUsingGameplayFrame(cam: Cam, length: integer, p2: integer)

Usage

JavaScript
addCamSplineNodeUsingGameplayFrame(cam, length, p2);
Lua
addCamSplineNodeUsingGameplayFrame(cam, length, p2)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
lengthintnumberinteger
p2intnumberinteger

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.

p2 is always 2 in scripts. It might be smoothing style or rotation order.

Reference

Namespace
Camera CAM
In the game
void ADD_CAM_SPLINE_NODE_USING_GAMEPLAY_FRAME(Cam cam, int length, int p2)
Hash
0x609278246A29CA34

Open in the interactive natives reference