SET_ENTITY_ROTATION
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](?\_0x8524A8B0171D5E07).**
CFX
Signature
lua
SetEntityRotation(entity, 0.0, 0.0, 0.0, 0, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Entity | The entity to rotate. | |
| float | The pitch (X-axis) rotation in degrees. | |
| float | The roll (Y-axis) rotation in degrees. | |
| float | The yaw (Z-axis) rotation in degrees. | |
| int | Specifies the order in which yaw, pitch, and roll are applied, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9) for the available rotation orders. | |
| BOOL | Usually set to `true`. Determines whether to check if the entity is dead before applying the rotation. |
Usage
lua
SetEntityRotation(entity, 0.0, 0.0, 0.0, 0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
