# CAMERA::SET_GAMEPLAY_CAM_RELATIVE_PITCH

- **Hash:** `0xFB760AF4F537B8BF`
- **Namespace:** CAMERA
- **Runtime name (Lua/JS):** `SetGameplayCamRelativePitch`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/CAMERA/SET_GAMEPLAY_CAM_RELATIVE_PITCH

## Signature

```c
void SET_GAMEPLAY_CAM_RELATIVE_PITCH(float x, float Value2);
```

## Parameters

- `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

### Lua

```lua
SetGameplayCamRelativePitch(x, Value2)

-- always available, by hash
Citizen.InvokeNative(0xFB760AF4F537B8BF, x, Value2)
```

### JavaScript

```js
SetGameplayCamRelativePitch(x, Value2);

// by hash
Citizen.invokeNative('0xFB760AF4F537B8BF', x + 0.0000001, Value2 + 0.0000001);
```

### C#

```csharp
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. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

## See also

- [CAMERA::GET_GAMEPLAY_CAM_RELATIVE_PITCH](https://natives.borderlinerp.com/natives/CAMERA/GET_GAMEPLAY_CAM_RELATIVE_PITCH.md)

*Sources: alloc8or RDR3 NativeDB.*
