From RAGE Multiplayer Wiki
Jump to navigation Jump to search

info about driving modes: HTTP://
Passing P6 value as floating value didn't throw any errors, though unsure what is it exactly, looks like radius or something.

P10 though, it is mentioned as float, however, I used bool and set it to true, that too worked.
Here the e.g. code I used
Function.Call(Hash.TASK_VEHICLE_DRIVE_TO_COORD, Ped, Vehicle, Cor X, Cor Y, Cor Z, 30f, 1f, Vehicle.GetHashCode(), 16777216, 1f, true);


player.taskVehicleDriveToCoord(vehicle, x, y, z, speed, p6, vehicleModel, drivingMode, stopRange, p10);

Required Arguments

  • vehicle: Vehicle handle or object
  • x: float
  • y: float
  • z: float
  • speed: float
  • p6: unknown (to be checked)
  • vehicleModel: Model hash or name
  • drivingMode: int
  • stopRange: float
  • p10: float

Return value

  • Undefined


// todo

See also