{"hash":"0x0759591819534F7B","ns":"TASK","name":"TASK_FOLLOW_WAYPOINT_RECORDING","slug":"TASK_FOLLOW_WAYPOINT_RECORDING","official":true,"named":true,"luaName":"TaskFollowWaypointRecording","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"waypointRecording","type":"const char*"},{"name":"startIndex","type":"int"},{"name":"flags","type":"int"},{"name":"endIndex","type":"int"},{"name":"patrol","type":"BOOL"},{"name":"aimWeapon","type":"BOOL"},{"name":"durationMs","type":"int"}],"summary":"Follow a loaded waypoint recording.","descriptions":[{"source":"alloc8or","format":"text","body":"Follow a loaded waypoint recording. startIndex/endIndex bound the segment; patrol makes it loop back-and-forth; aimWeapon sets aiming stance; durationMs=-1 for natural pacing, otherwise caps time (snaps to end on expiry)."},{"source":"vorp","format":"text","body":"Orders ped to follow a waypoint recording with control over start/end node indices, optional patrol (back-and-forth) behavior,aiming stance, and total traversal duration\nNOTES:The recording must be requested and loaded using `REQUEST_WAYPOINT_RECORDING`.\nThe indices (startIndex, endIndex) restrict which part of the route is used.\npatrol controls whether the ped returns to the start after reaching the end.\naimWeapon only affects stance — no firing occurs.\nduration determines total task time before snapping to the end node\nhttps://www.youtube.com/watch?v=RIsXDJSmeGU"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x0759591819534F7B","gtaJhash":"0xADF9904D","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_FOLLOW_WAYPOINT_RECORDING","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_FOLLOW_WAYPOINT_RECORDING.md","snippets":{"lua":"TaskFollowWaypointRecording(ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs)","luaInvoke":"Citizen.InvokeNative(0x0759591819534F7B, ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs)","js":"TaskFollowWaypointRecording(ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs);","jsInvoke":"Citizen.invokeNative('0x0759591819534F7B', ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs);","csharp":"Function.Call((Hash)0x0759591819534F7B, ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs);","notes":[]}}