SetEntityRotation — RedM Natives
0xA345EFE · CFX · server
Sets the rotation of a specified entity in the game world. `` NativeDB Introduced: v323 `` This is the server-side RPC native equivalent of the client native SET_ENTITY_ROTATION.
Parameters
| Name | Type | Description |
|---|---|---|
| entity | Entity | The entity to rotate. |
| pitch | float | The pitch (X-axis) rotation in degrees. |
| roll | float | The roll (Y-axis) rotation in degrees. |
| yaw | float | The yaw (Z-axis) rotation in degrees. |
| rotationOrder | int | Specifies the order in which yaw, pitch, and roll are applied, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9) for the available rotation orders. |
| bDeadCheck | BOOL | Usually set to `true`. Determines whether to check if the entity is dead before applying the rotation. |
Returns
void