Skip to content

TaskVehicleDriveToCoord

ask to a ped with a vehicle to drive at a specific coordinate

Argument Data Type Needed Default Description
Ped ped - The driver of the vehicle
Vehicle vehicle - The vehicle
Destination vector3 - The destination coords
Speed number 10.0 The driving speed
Stop range number 1.0 The stop range

Dont need to be called every frame


Example

Using vector3

TaskVehicleDriveToCoord(ped, vehicle, vector3(0.0, 0.0, 0.0))

Old method
TaskVehicleDriveToCoord(ped, vehicle, vector3(0.0, 0.0, 0.0), 10.0, 0, GetEntityModel(vehicle), driving_style, 1.0)
Old problem

THE DRIVING STYLE!!
is something almost impossible to find, there is almost 0 documentation about the driving style, every time i tried to use this native i always had to go and grab the driving style from other scripts

Using old native

although i dont recommend it, you can use the old native via old_TaskVehicleDriveToCoord


Last update: April 12, 2022
Created: July 2, 2021