EntityClient

getEntityForwardY

GET_ENTITY_FORWARD_Y0x866A4A5FAE349510

The GTA V native GET_ENTITY_FORWARD_Y of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityForwardY, in JavaScript and in Lua.

SignatureJavaScript
getEntityForwardY(entity: Entity): number
SignatureLua
getEntityForwardY(entity: Entity): number

Usage

JavaScript
const value = getEntityForwardY(entity);
Lua
local value = getEntityForwardY(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

float JavaScript number, Lua number

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Gets the Y-component of the entity's forward vector.

Reference

Namespace
Entity ENTITY
In the game
float GET_ENTITY_FORWARD_Y(Entity entity)
Hash
0x866A4A5FAE349510

Open in the interactive natives reference