requestPathNodesInAreaThisFrame

REQUEST_PATH_NODES_IN_AREA_THIS_FRAME0x07FB139B592FA687

The GTA V native REQUEST_PATH_NODES_IN_AREA_THIS_FRAME of the PATHFIND namespace, as LS:MP client scripts call it: the global function requestPathNodesInAreaThisFrame, in JavaScript and in Lua.

SignatureJavaScript
requestPathNodesInAreaThisFrame(
  x1: number,
  y1: number,
  x2: number,
  y2: number
): boolean
SignatureLua
requestPathNodesInAreaThisFrame(
  x1: number,
  y1: number,
  x2: number,
  y2: number
): boolean

Usage

JavaScript
const result = requestPathNodesInAreaThisFrame(x1, y1, x2, y2);
Lua
local result = requestPathNodesInAreaThisFrame(x1, y1, x2, y2)

Parameters

ParameterTypeJavaScriptLua
x1floatnumbernumber
y1floatnumbernumber
x2floatnumbernumber
y2floatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Used internally for long range tasks

Reference

Namespace
Pathfinding PATHFIND
In the game
BOOL REQUEST_PATH_NODES_IN_AREA_THIS_FRAME(float x1, float y1, float x2, float y2)
Hash
0x07FB139B592FA687
Formerly
REQUEST_PATHS_PREFER_ACCURATE_BOUNDINGSTRUCT

Open in the interactive natives reference