SET_GAMEPLAY_CAM_RELATIVE_PITCH
Sets the camera pitch.
Hash
0xFB760AF4F537B8BFRuntime name
SetGameplayCamRelativePitchNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x6D0858B8EDFD2B7DSignature
void SET_GAMEPLAY_CAM_RELATIVE_PITCH(float x, float Value2);Parameters
| Name | Type | Description |
|---|---|---|
x | float | — |
Value2 | float | — |
Returns void
Description
Sets the camera pitch.
Parameters:
x = pitches the camera on the x axis.
Value2 = always seems to be hex 0x3F800000 (1.000000 float).
Usage
SetGameplayCamRelativePitch(x, Value2)
-- always works, by hash
Citizen.InvokeNative(0xFB760AF4F537B8BF, x, Value2)JavaScript and C#
SetGameplayCamRelativePitch(x, Value2);
// by hash
Citizen.invokeNative('0xFB760AF4F537B8BF', x + 0.0000001, Value2 + 0.0000001);Function.Call((Hash)0xFB760AF4F537B8BF, x, Value2);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.