Native referenceRedMclient

NAVMESH_REQUEST_PATH

0x348F211CA2404039 PATHFIND
FUNCTION SIGNATURE
int NAVMESH_REQUEST_PATH(Ped ped, float x1, float y1, float z1, float x2, float y2, float z2, int bitFlag);
Property Value
Native Name NAVMESH_REQUEST_PATH
Hash 0x348F211CA2404039
Return Type int
Build 1207
API Set client
Parameters ped (Ped), x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), bitFlag (int)

Description: Starts a nav mesh query for a path between coordinates with a given ped and returns a handle to be validated by _NAVMESH_REQUESTED_QUERY_STATUS and then _NAVMESH_REQUESTED_PATH_WAYPOINTS_FOUND

Only bit flag values used in scripts are 0, 23, and 29. 23 is used with dogs and horses. 29 with legendary animals.

Usage

Lua (Direct):

local result = NavmeshRequestPath(ped, x1, y1, z1, x2, y2, z2, bitFlag)

Lua (Hash):

local result = Citizen.InvokeNative(0x348F211CA2404039, ped, x1, y1, z1, x2, y2, z2, bitFlag)
Back to PATHFIND