The Lab
ENTITY native

SET_ENTITY_QUATERNION

returns void5 paramsbuild 1207

Sets the rotation of the entity using a quaternion.

Signature

C
void SET_ENTITY_QUATERNION(Entity entity, float x, float y, float z, float w); // 0x100E7007D13E3687 b1207

Parameters

#NameType
1entityEntity
2xfloat
3yfloat
4zfloat
5wfloat

Facts

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

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

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