SetVehicleBrakeBiasFront

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

Sets the distribution of braking force between the front and rear axles.

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.setVehicleBrakeBiasFront(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.0 means the rear axle only receives brake force, 1.0 means the front axle only receives brake force. 0.5 gives both axles equal brake force. A value between 0.01 and 0.49 means the rear axle will receive more brake force than the front and a value between .051 and 0.99 means the front axles will receive more brake force than the rear. In real life, normal vehicles usually have more front braking force than the rear (eg., 0.65).

Usage example

In Javascript
Client-Side Function

API.setVehicleBrakeBiasFront(int vehicleHash, double value);

References