GetEntityRotation — FiveM Natives
0xAFBD61CC738D9EB9 · ENTITY · all
NOTE: What you use for rotationOrder when getting must be the same as rotationOrder when setting the rotation. ``cpp enum eRotationOrder { // Rotate around the z-axis, then the y-axis and finally the x-axis. ROT_ZYX = 0, // Rotate around the y-axis, then the z-axis and finally the x-axis. ROT_YZX = 1, // Rotate around the z-axis, then the x-axis and finally the y-axis. ROT_ZXY = 2, // Rotate around the x-axis, then the z-axis and finally the y-axis. ROT_XZY = 3, // Rotate around the y-axis, then the x-axis and finally the z-axis. ROT_YXZ = 4, // Rotate around the x-axis, then the y-axis and finally the z-axis. ROT_XYZ = 5, } ``
Parameters
| Name | Type | Description |
|---|---|---|
| entity | Entity | The entity to get the rotation for. |
| rotationOrder | int | The order yaw, pitch and roll is applied. Usually 2. |
Returns
Vector3