# ENTITY::SET_ENTITY_ROTATION

- **Hash:** `0x9CC8314DFEDE441E`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `SetEntityRotation`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/SET_ENTITY_ROTATION

## Signature

```c
void SET_ENTITY_ROTATION(Entity entity, float pitch, float roll, float yaw, int rotationOrder, BOOL p5);
```

## Parameters

- `entity` (`Entity`)
- `pitch` (`float`)
- `roll` (`float`)
- `yaw` (`float`)
- `rotationOrder` (`int`)
- `p5` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
SetEntityRotation(entity, pitch, roll, yaw, rotationOrder, p5)

-- always available, by hash
Citizen.InvokeNative(0x9CC8314DFEDE441E, entity, pitch, roll, yaw, rotationOrder, p5)
```

### JavaScript

```js
SetEntityRotation(entity, pitch, roll, yaw, rotationOrder, p5);

// by hash
Citizen.invokeNative('0x9CC8314DFEDE441E', entity, pitch + 0.0000001, roll + 0.0000001, yaw + 0.0000001, rotationOrder, p5);
```

### C#

```csharp
Function.Call((Hash)0x9CC8314DFEDE441E, entity, pitch, roll, yaw, rotationOrder, p5);
```

- 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

- [ENTITY::GET_ENTITY_ROTATION](https://natives.borderlinerp.com/natives/ENTITY/GET_ENTITY_ROTATION.md)

*Sources: alloc8or RDR3 NativeDB.*
