RedM Natives

TASK_FOLLOW_WAYPOINT_RECORDING

Follow a loaded waypoint recording.

Hash0x0759591819534F7B
Runtime nameTaskFollowWaypointRecording
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x0759591819534F7B

Signature

void TASK_FOLLOW_WAYPOINT_RECORDING(Ped ped, const char* waypointRecording, int startIndex, int flags, int endIndex, BOOL patrol, BOOL aimWeapon, int durationMs);

Parameters

NameTypeDescription
pedPed—
waypointRecordingconst char*—
startIndexint—
flagsint—
endIndexint—
patrolBOOL—
aimWeaponBOOL—
durationMsint—

Returns void

Description

alloc8or RDR3 NativeDB

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).

VORPCORE RDR3natives

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
NOTES:The recording must be requested and loaded using REQUEST_WAYPOINT_RECORDING.
The indices (startIndex, endIndex) restrict which part of the route is used.
patrol controls whether the ped returns to the start after reaching the end.
aimWeapon only affects stance — no firing occurs.
duration determines total task time before snapping to the end node
https://www.youtube.com/watch?v=RIsXDJSmeGU

Usage

Lua
TaskFollowWaypointRecording(ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs)

-- always works, by hash
Citizen.InvokeNative(0x0759591819534F7B, ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs)
JavaScript and C#
JavaScript
TaskFollowWaypointRecording(ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs);

// by hash
Citizen.invokeNative('0x0759591819534F7B', ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs);
C#
Function.Call((Hash)0x0759591819534F7B, ped, waypointRecording, startIndex, flags, endIndex, patrol, aimWeapon, durationMs);

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.