getApproxFloorForPoint
GET_APPROX_FLOOR_FOR_POINT0x336511A34F2E5185The GTA V native GET_APPROX_FLOOR_FOR_POINT of the PATHFIND namespace, as LS:MP client scripts call it: the global function getApproxFloorForPoint, in JavaScript and in Lua.
getApproxFloorForPoint(x: number, y: number): numbergetApproxFloorForPoint(x: number, y: number): numberUsage
JavaScript
const value = getApproxFloorForPoint(x, y);Lua
local value = getApproxFloorForPoint(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_FLOOR_FOR_POINT(float x, float y)- Hash
0x336511A34F2E5185- Formerly
_GET_HEIGHTMAP_BOTTOM_Z_FOR_POSITION