getApproxFloorForPoint

GET_APPROX_FLOOR_FOR_POINT0x336511A34F2E5185

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

SignatureJavaScript
getApproxFloorForPoint(x: number, y: number): number
SignatureLua
getApproxFloorForPoint(x: number, y: number): number

Usage

JavaScript
const value = getApproxFloorForPoint(x, y);
Lua
local value = getApproxFloorForPoint(x, y)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber

Returns

float JavaScript number, Lua number

Reference

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

Open in the interactive natives reference