SET_ENTITY_ROTATION
Sets the rotation of the entity using the given rotation order.
Signature
void SET_ENTITY_ROTATION(Entity entity, float pitch, float roll, float yaw, int rotationOrder, BOOL p5); // 0x9CC8314DFEDE441E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | pitch | float |
| 3 | roll | float |
| 4 | yaw | float |
| 5 | rotationOrder | int |
| 6 | p5 | BOOL |
Facts
| Name | SET_ENTITY_ROTATION |
|---|---|
| Hash | 0x9CC8314DFEDE441E |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x9CC8314DFEDE441E, -- SET_ENTITY_ROTATION
PlayerPedId(), -- Entity entity
0.0, -- float pitch
0.0, -- float roll
0.0, -- float yaw
0, -- int rotationOrder
false -- BOOL p5
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x9CC8314DFEDE441E", // SET_ENTITY_ROTATION
PlayerPedId(), // Entity entity
0.0, // float pitch
0.0, // float roll
0.0, // float yaw
0, // int rotationOrder
false // BOOL p5
);Function.Call((Hash)0x9CC8314DFEDE441E, // SET_ENTITY_ROTATION
API.PlayerPedId(), // Entity entity
0.0f, // float pitch
0.0f, // float roll
0.0f, // float yaw
0, // int rotationOrder
false // BOOL p5
);Related ENTITY natives
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_NO_COLLISION_ENTITY
- SET_ENTITY_RENDER_SCORCHED
- SET_ENTITY_REQUIRES_MORE_EXPENSIVE_RIVER_CHECK
- SET_ENTITY_ALPHA
- SET_ENTITY_ALWAYS_PRERENDER
- SET_ENTITY_AS_NO_LONGER_NEEDED
- SET_ENTITY_CAN_BE_DAMAGED
- SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP
- SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS
- SET_ENTITY_COLLISION
- SET_ENTITY_COMPLETELY_DISABLE_COLLISION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.