CameraClient

setGameplayCamRelativePitch

SET_GAMEPLAY_CAM_RELATIVE_PITCH0x6D0858B8EDFD2B7D

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

SignatureJavaScript
setGameplayCamRelativePitch(angle: number, scalingFactor: number): void
SignatureLua
setGameplayCamRelativePitch(angle: number, scalingFactor: number)

Usage

JavaScript
setGameplayCamRelativePitch(angle, scalingFactor);
Lua
setGameplayCamRelativePitch(angle, scalingFactor)

Parameters

ParameterTypeJavaScriptLua
anglefloatnumbernumber
scalingFactorfloatnumbernumber

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.

This native sets the camera's pitch (rotation on the x-axis).

Reference

Namespace
Camera CAM
In the game
void SET_GAMEPLAY_CAM_RELATIVE_PITCH(float angle, float scalingFactor)
Hash
0x6D0858B8EDFD2B7D

Open in the interactive natives reference