RedM Natives

TASK_VEHICLE_FOLLOW_WAYPOINT_RECORDING

Hash0x3123FAA6DB1CF7ED
Runtime nameTaskVehicleFollowWaypointRecording
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3123FAA6DB1CF7ED

Signature

void TASK_VEHICLE_FOLLOW_WAYPOINT_RECORDING(Ped ped, Vehicle vehicle, const char* waypointRecording, int drivingMode, Any p4, int eWaypoint, int flag, float p7, BOOL p8, float stoppingDist, Any p10);

Parameters

NameTypeDescription
pedPed—
vehicleVehicle—
waypointRecordingconst char*—
drivingModeint—
p4Any—
eWaypointint—
flagint—
p7float—
p8BOOL—
stoppingDistfloat—
p10Any—

Returns void

Usage

Lua
TaskVehicleFollowWaypointRecording(ped, vehicle, waypointRecording, drivingMode, p4, eWaypoint, flag, p7, p8, stoppingDist, p10)

-- always works, by hash
Citizen.InvokeNative(0x3123FAA6DB1CF7ED, ped, vehicle, waypointRecording, drivingMode, p4, eWaypoint, flag, p7, p8, stoppingDist, p10)
JavaScript and C#
JavaScript
TaskVehicleFollowWaypointRecording(ped, vehicle, waypointRecording, drivingMode, p4, eWaypoint, flag, p7, p8, stoppingDist, p10);

// by hash
Citizen.invokeNative('0x3123FAA6DB1CF7ED', ped, vehicle, waypointRecording, drivingMode, p4, eWaypoint, flag, p7 + 0.0000001, p8, stoppingDist + 0.0000001, p10);
C#
Function.Call((Hash)0x3123FAA6DB1CF7ED, ped, vehicle, waypointRecording, drivingMode, p4, eWaypoint, flag, p7, p8, stoppingDist, p10);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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