The Lab
ENTITY native

GET_ENTITY_ROTATION

returns Vector32 paramsbuild 1207

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

Signature

C
Vector3 GET_ENTITY_ROTATION(Entity entity, int rotationOrder); // 0xE09CAF86C32CB48F b1207

Parameters

#NameType
1entityEntity
2rotationOrderint

Facts

Facts about GET_ENTITY_ROTATION
Name
GET_ENTITY_ROTATION
Hash
0xE09CAF86C32CB48F
Namespace
Returns
Vector3
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local coords = Citizen.InvokeNative(0xE09CAF86C32CB48F, -- GET_ENTITY_ROTATION
  PlayerPedId(), -- Entity entity
  0, -- int rotationOrder
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0xE09CAF86C32CB48F", // GET_ENTITY_ROTATION
  PlayerPedId(), // Entity entity
  0, // int rotationOrder
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0xE09CAF86C32CB48F, // GET_ENTITY_ROTATION
  API.PlayerPedId(), // Entity entity
  0 // int rotationOrder
);
All ENTITY natives

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