CameraClient

setGameplayCamRelativeHeading

SET_GAMEPLAY_CAM_RELATIVE_HEADING0xB4EC2312F4E5B1F1

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

SignatureJavaScript
setGameplayCamRelativeHeading(heading: number): void
SignatureLua
setGameplayCamRelativeHeading(heading: number)

Usage

JavaScript
setGameplayCamRelativeHeading(heading);
Lua
setGameplayCamRelativeHeading(heading)

Parameters

ParameterTypeJavaScriptLua
headingfloatnumbernumber

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.

Sets the camera position relative to heading in float from -360 to +360.

Heading is alwyas 0 in aiming camera.

Reference

Namespace
Camera CAM
In the game
void SET_GAMEPLAY_CAM_RELATIVE_HEADING(float heading)
Hash
0xB4EC2312F4E5B1F1

Open in the interactive natives reference