{"hash":"0xE2A2AA2F659D77A7","ns":"TASK","name":"TASK_VEHICLE_DRIVE_TO_COORD","slug":"TASK_VEHICLE_DRIVE_TO_COORD","official":true,"named":true,"luaName":"TaskVehicleDriveToCoord","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ped","type":"Ped"},{"name":"vehicle","type":"Vehicle"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"speed","type":"float"},{"name":"drivingStyle","type":"int"},{"name":"vehicleModel","type":"Hash"},{"name":"drivingMode","type":"int"},{"name":"stopRange","type":"float"},{"name":"straightLineDist","type":"float"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"stopRange: how close vehicle will get to destination before stopping, default 4.0\nstraightLineDist: distance at which AI switches to heading for target directly instead of following nodes, default -1"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xE2A2AA2F659D77A7","gtaJhash":"0xE4AC0387","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_VEHICLE_DRIVE_TO_COORD","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_VEHICLE_DRIVE_TO_COORD.md","snippets":{"lua":"TaskVehicleDriveToCoord(ped, vehicle, x, y, z, speed, drivingStyle, vehicleModel, drivingMode, stopRange, straightLineDist)","luaInvoke":"Citizen.InvokeNative(0xE2A2AA2F659D77A7, ped, vehicle, x, y, z, speed, drivingStyle, vehicleModel, drivingMode, stopRange, straightLineDist)","js":"TaskVehicleDriveToCoord(ped, vehicle, x, y, z, speed, drivingStyle, vehicleModel, drivingMode, stopRange, straightLineDist);","jsInvoke":"Citizen.invokeNative('0xE2A2AA2F659D77A7', ped, vehicle, x + 0.0000001, y + 0.0000001, z + 0.0000001, speed + 0.0000001, drivingStyle, vehicleModel, drivingMode, stopRange + 0.0000001, straightLineDist + 0.0000001);","csharp":"Function.Call((Hash)0xE2A2AA2F659D77A7, ped, vehicle, x, y, z, speed, drivingStyle, vehicleModel, drivingMode, stopRange, straightLineDist);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}