The Lab
ENTITY native

_GET_ENTITY_FORWARD_VECTOR_YX

returns Vector31 parambuild 1207

Returns the entity's forward vector with its X and Y components swapped.

Signature

C
Vector3 _GET_ENTITY_FORWARD_VECTOR_YX(Entity entity); // 0x935A30AA88FB1014 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about _GET_ENTITY_FORWARD_VECTOR_YX
Name
_GET_ENTITY_FORWARD_VECTOR_YX
Hash
0x935A30AA88FB1014
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(0x935A30AA88FB1014, -- _GET_ENTITY_FORWARD_VECTOR_YX
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
const coords = Citizen.invokeNative("0x935A30AA88FB1014", // _GET_ENTITY_FORWARD_VECTOR_YX
  PlayerPedId(), // Entity entity
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0x935A30AA88FB1014, // _GET_ENTITY_FORWARD_VECTOR_YX
  API.PlayerPedId() // Entity entity
);
All ENTITY natives

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