The Lab
ENTITY native

GET_ENTITY_FORWARD_Y

returns float1 parambuild 1207

Returns the Y component of the entity's forward vector.

Signature

C
float GET_ENTITY_FORWARD_Y(Entity entity); // 0x9A5C073ECBDA7EE7 b1207

Parameters

#NameType
1entityEntity

Facts

Facts about GET_ENTITY_FORWARD_Y
Name
GET_ENTITY_FORWARD_Y
Hash
0x9A5C073ECBDA7EE7
Namespace
Returns
float
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x9A5C073ECBDA7EE7, -- GET_ENTITY_FORWARD_Y
  PlayerPedId(), -- Entity entity
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x9A5C073ECBDA7EE7", // GET_ENTITY_FORWARD_Y
  PlayerPedId(), // Entity entity
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x9A5C073ECBDA7EE7, // GET_ENTITY_FORWARD_Y
  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.