GET_ENTITY_FORWARD_Y
Gets the Y-component of the entity's forward vector.
Hash
0x9A5C073ECBDA7EE7Runtime name
GetEntityForwardYNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x866A4A5FAE349510Signature
float GET_ENTITY_FORWARD_Y(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns float
Description
Gets the Y-component of the entity's forward vector.
Usage
local retval = GetEntityForwardY(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x9A5C073ECBDA7EE7, entity, Citizen.ResultAsFloat())JavaScript and C#
const retval = GetEntityForwardY(entity);
// by hash
const retval = Citizen.invokeNative('0x9A5C073ECBDA7EE7', entity, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x9A5C073ECBDA7EE7, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.