getApproxHeightForPoint
GET_APPROX_HEIGHT_FOR_POINT0x29C24BFBED8AB8FBThe GTA V native GET_APPROX_HEIGHT_FOR_POINT of the PATHFIND namespace, as LS:MP client scripts call it: the global function getApproxHeightForPoint, in JavaScript and in Lua.
getApproxHeightForPoint(x: number, y: number): numbergetApproxHeightForPoint(x: number, y: number): numberUsage
JavaScript
const value = getApproxHeightForPoint(x, y);Lua
local value = getApproxHeightForPoint(x, y)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x | float | number | number |
y | float | number | number |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Pathfinding PATHFIND
- In the game
float GET_APPROX_HEIGHT_FOR_POINT(float x, float y)- Hash
0x29C24BFBED8AB8FB- Formerly
_GET_HEIGHTMAP_TOP_Z_FOR_POSITION