getEntityHeightAboveGround
GET_ENTITY_HEIGHT_ABOVE_GROUND0x1DD55701034110E5The GTA V native GET_ENTITY_HEIGHT_ABOVE_GROUND of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityHeightAboveGround, in JavaScript and in Lua.
getEntityHeightAboveGround(entity: Entity): numbergetEntityHeightAboveGround(entity: Entity): numberUsage
JavaScript
const value = getEntityHeightAboveGround(entity);Lua
local value = getEntityHeightAboveGround(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.
Return height (z-dimension) above ground.
Example: The pilot in a titan plane is 1.844176 above ground.
Reference
- Namespace
- Entity ENTITY
- In the game
float GET_ENTITY_HEIGHT_ABOVE_GROUND(Entity entity)- Hash
0x1DD55701034110E5