SetVehicleInitialDriveMaxFlatVelocity

From GT-MP
Jump to: navigation, search
SetVehicleInitialDriveMaxFlatVelocity
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Sets the speed at redline in top gear. Setting this value does not guarantee the vehicle will reach this speed. Multiply the number by 0-82 to get the speed in mph or multiply by 1.32 to get kph.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.
Dialog-warning.png All vehicle handling data changes get resetted on disconnect.

Syntax

In Javascript
Client-Side Function

API.setVehicleInitialDriveMaxFlatVelocity(int vehicleHash, double value);

Required Arguments

  • vehicleHash parameter input should be in int type. See Vehicle Models.
  • value parameter input should be in double type.
    • 0.00 - 500.0 and above.

Usage example

In Javascript
Client-Side Function

API.setVehicleInitialDriveMaxFlatVelocity(int vehicleHash, double value);

References