Native referenceFiveM

ADD_PATROL_ROUTE_NODE

0x8EDF950167586B7C TASK
FUNCTION SIGNATURE
void ADD_PATROL_ROUTE_NODE(int id, char* guardScenario, float x1, float y1, float z1, float x2, float y2, float z2, int waitTime);
Property Value
Native Name ADD_PATROL_ROUTE_NODE
Hash 0x8EDF950167586B7C
Return Type void
Parameters id (int), guardScenario (char*), x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), waitTime (int)

Description: x2,y2 and z2 are the coordinates to which the ped should look at

Parameters

  • id (int) — is an integer that "identifies" the route node for linking to the route with ADD_PATROL_ROUTE_LINK.
  • guardScenario (char*) — can be "WORLD_HUMAN_GUARD_STAND" or "StandGuard"
  • x1 (float) — destination
  • y1 (float) — destination
  • z1 (float) — destination
  • x2 (float) — coordinates to which the ped should look
  • y2 (float) — coordinates to which the ped should look
  • z2 (float) — coordinates to which the ped should look
  • waitTime (int) — written in ms

Examples

-- the guard will go toward vector3(1.0, 1.0, 1.0) coordinates looking toward vector3(0.0, 0.0, 0.0) coordinates waiting 1000ms with the WORLD_HUMAN_GUARD_STAND animation
AddPatrolRouteNode(1, "WORLD_HUMAN_GUARD_STAND", vector3(1.0, 1.0, 1.0), vector3(0.0, 0.0, 0.0), 1000)
Back to TASK