EntityClient

getEntityHeightAboveGround

GET_ENTITY_HEIGHT_ABOVE_GROUND0x1DD55701034110E5

The 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.

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

Usage

JavaScript
const value = getEntityHeightAboveGround(entity);
Lua
local value = getEntityHeightAboveGround(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.

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

Open in the interactive natives reference