The Lab
ENTITY native

SET_ENTITY_ROTATION

returns void6 paramsbuild 1207

Sets the rotation of the entity using the given rotation order.

Signature

C
void SET_ENTITY_ROTATION(Entity entity, float pitch, float roll, float yaw, int rotationOrder, BOOL p5); // 0x9CC8314DFEDE441E b1207

Parameters

#NameType
1entityEntity
2pitchfloat
3rollfloat
4yawfloat
5rotationOrderint
6p5BOOL

Facts

Facts about SET_ENTITY_ROTATION
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.