getEntityForwardY
GET_ENTITY_FORWARD_Y0x866A4A5FAE349510The 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.
getEntityForwardY(entity: Entity): numbergetEntityForwardY(entity: Entity): numberUsage
JavaScript
const value = getEntityForwardY(entity);Lua
local value = getEntityForwardY(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
float JavaScript number, Lua numberNotes
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