# CAMERA::SET_GAMEPLAY_CAM_RELATIVE_HEADING

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

## Signature

```c
void SET_GAMEPLAY_CAM_RELATIVE_HEADING(float heading, float p1);
```

## Parameters

- `heading` (`float`)
- `p1` (`float`)

## Returns

`void`

## Description

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

Heading is always 0 in aiming camera.

## Usage

### Lua

```lua
SetGameplayCamRelativeHeading(heading, p1)

-- always available, by hash
Citizen.InvokeNative(0x5D1EB123EAC5D071, heading, p1)
```

### JavaScript

```js
SetGameplayCamRelativeHeading(heading, p1);

// by hash
Citizen.invokeNative('0x5D1EB123EAC5D071', heading + 0.0000001, p1 + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x5D1EB123EAC5D071, heading, p1);
```

- 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_HEADING](https://natives.borderlinerp.com/natives/CAMERA/GET_GAMEPLAY_CAM_RELATIVE_HEADING.md)

*Sources: alloc8or RDR3 NativeDB.*
