SET_ENTITY_QUATERNION
Sets the rotation of the entity using a quaternion.
Signature
void SET_ENTITY_QUATERNION(Entity entity, float x, float y, float z, float w); // 0x100E7007D13E3687 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | w | float |
Facts
| Name | SET_ENTITY_QUATERNION |
|---|---|
| Hash | 0x100E7007D13E3687 |
| 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(0x100E7007D13E3687, -- SET_ENTITY_QUATERNION
PlayerPedId(), -- Entity entity
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0 -- float w
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x100E7007D13E3687", // SET_ENTITY_QUATERNION
PlayerPedId(), // Entity entity
0.0, // float x
0.0, // float y
0.0, // float z
0.0 // float w
);Function.Call((Hash)0x100E7007D13E3687, // SET_ENTITY_QUATERNION
API.PlayerPedId(), // Entity entity
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f // float w
);Related ENTITY natives
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_NO_COLLISION_ENTITY
- 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
- SET_ENTITY_COORDS
- SET_ENTITY_COORDS_NO_OFFSET
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.