SET_ENTITY_ROTATION
Hash
0x9CC8314DFEDE441ERuntime name
SetEntityRotationNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8524A8B0171D5E07Signature
void SET_ENTITY_ROTATION(Entity entity, float pitch, float roll, float yaw, int rotationOrder, BOOL p5);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
pitch | float | — |
roll | float | — |
yaw | float | — |
rotationOrder | int | — |
p5 | BOOL | — |
Returns void
Usage
SetEntityRotation(entity, pitch, roll, yaw, rotationOrder, p5)
-- always works, by hash
Citizen.InvokeNative(0x9CC8314DFEDE441E, entity, pitch, roll, yaw, rotationOrder, p5)JavaScript and C#
SetEntityRotation(entity, pitch, roll, yaw, rotationOrder, p5);
// by hash
Citizen.invokeNative('0x9CC8314DFEDE441E', entity, pitch + 0.0000001, roll + 0.0000001, yaw + 0.0000001, rotationOrder, p5);Function.Call((Hash)0x9CC8314DFEDE441E, entity, pitch, roll, yaw, rotationOrder, p5);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.