The Lab
PATH native

REQUEST_PATH_NODES_IN_AREA_THIS_FRAME

returns BOOL4 paramsbuild 1207

Requests that path nodes in the given rectangle be loaded and returns true once they are available.

Signature

C
BOOL REQUEST_PATH_NODES_IN_AREA_THIS_FRAME(float x1, float y1, float x2, float y2); // 0x07FB139B592FA687 b1207

Parameters

#NameType
1x1float
2y1float
3x2float
4y2float

Facts

Facts about REQUEST_PATH_NODES_IN_AREA_THIS_FRAME
Name
REQUEST_PATH_NODES_IN_AREA_THIS_FRAME
Hash
0x07FB139B592FA687
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x07FB139B592FA687, -- REQUEST_PATH_NODES_IN_AREA_THIS_FRAME
  0.0, -- float x1
  0.0, -- float y1
  0.0, -- float x2
  0.0 -- float y2
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0x07FB139B592FA687", // REQUEST_PATH_NODES_IN_AREA_THIS_FRAME
  0.0, // float x1
  0.0, // float y1
  0.0, // float x2
  0.0, // float y2
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x07FB139B592FA687, // REQUEST_PATH_NODES_IN_AREA_THIS_FRAME
  0.0f, // float x1
  0.0f, // float y1
  0.0f, // float x2
  0.0f // float y2
);
All PATH natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.