CameraClient

setCamInheritRollVehicle

SET_CAM_INHERIT_ROLL_VEHICLE0x45F1DE9C34B93AE6

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

SignatureJavaScript
setCamInheritRollVehicle(cam: Cam, p1: boolean): void
SignatureLua
setCamInheritRollVehicle(cam: Cam, p1: boolean)

Usage

JavaScript
setCamInheritRollVehicle(cam, p1);
Lua
setCamInheritRollVehicle(cam, p1)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
p1BOOLbooleanboolean

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.

The native seems to only be called once.

The native is used as so,

setCamInheritRollVehicle(l_544, getElem(2, &l_525, 4));

In the exile1 script.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_INHERIT_ROLL_VEHICLE(Cam cam, BOOL p1)
Hash
0x45F1DE9C34B93AE6

Open in the interactive natives reference