loadAllPathNodes

LOAD_ALL_PATH_NODES0xC2AB6BFE34E92F8B

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

SignatureJavaScript
loadAllPathNodes(bLoadAll: boolean): boolean
SignatureLua
loadAllPathNodes(bLoadAll: boolean): boolean

Usage

JavaScript
const result = loadAllPathNodes(bLoadAll);
Lua
local result = loadAllPathNodes(bLoadAll)

Parameters

ParameterTypeJavaScriptLua
bLoadAllBOOLbooleanboolean

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.

Loads/unloads all path nodes on the map.
Returns true if all nodes are loaded (effectively areNodesLoadedForArea for the entire map).

Note: this native was removed in build 1180 but returned in build 2802.

Reference

Namespace
Pathfinding PATHFIND
In the game
BOOL LOAD_ALL_PATH_NODES(BOOL bLoadAll)
Hash
0xC2AB6BFE34E92F8B
Introduced
Game build 2802 legacy numbering

Open in the interactive natives reference