# CAMERA::SET_CAM_ROT

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

## Signature

```c
void SET_CAM_ROT(Cam cam, float rotX, float rotY, float rotZ, int rotationOrder);
```

## Parameters

- `cam` (`Cam`)
- `rotX` (`float`)
- `rotY` (`float`)
- `rotZ` (`float`)
- `rotationOrder` (`int`)

## Returns

`void`

## Description

Sets the rotation of the cam.

## Usage

### Lua

```lua
SetCamRot(cam, rotX, rotY, rotZ, rotationOrder)

-- always available, by hash
Citizen.InvokeNative(0x63DFA6810AD78719, cam, rotX, rotY, rotZ, rotationOrder)
```

### JavaScript

```js
SetCamRot(cam, rotX, rotY, rotZ, rotationOrder);

// by hash
Citizen.invokeNative('0x63DFA6810AD78719', cam, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, rotationOrder);
```

### C#

```csharp
Function.Call((Hash)0x63DFA6810AD78719, cam, rotX, rotY, rotZ, rotationOrder);
```

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

## Related enums

- [eEulerRotationOrder](https://natives.borderlinerp.com/enums/eEulerRotationOrder.md) — 6 values

## See also

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

*Sources: alloc8or RDR3 NativeDB.*
