getApproxFloorForArea
GET_APPROX_FLOOR_FOR_AREA0x3599D741C9AC6310The GTA V native GET_APPROX_FLOOR_FOR_AREA of the PATHFIND namespace, as LS:MP client scripts call it: the global function getApproxFloorForArea, in JavaScript and in Lua.
getApproxFloorForArea(x1: number, y1: number, x2: number, y2: number): numbergetApproxFloorForArea(x1: number, y1: number, x2: number, y2: number): numberUsage
JavaScript
const value = getApproxFloorForArea(x1, y1, x2, y2);Lua
local value = getApproxFloorForArea(x1, y1, x2, y2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
x1 | float | number | number |
y1 | float | number | number |
x2 | float | number | number |
y2 | float | number | number |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Pathfinding PATHFIND
- In the game
float GET_APPROX_FLOOR_FOR_AREA(float x1, float y1, float x2, float y2)- Hash
0x3599D741C9AC6310- Formerly
_GET_HEIGHTMAP_BOTTOM_Z_FOR_AREA