setGameplayCamRelativeHeading
SET_GAMEPLAY_CAM_RELATIVE_HEADING0xB4EC2312F4E5B1F1The 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.
setGameplayCamRelativeHeading(heading: number): voidsetGameplayCamRelativeHeading(heading: number)Usage
JavaScript
setGameplayCamRelativeHeading(heading);Lua
setGameplayCamRelativeHeading(heading)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
heading | float | number | number |
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