Skip to main content

Vehicle::setHandling

You can find all list of the types here: <https://forums.gta5-mods.com/topic/3842/tutorial-handling-meta>

Notes

setHandling does not use the exact values from handling.meta for certain fields, these are as follows:

  • fInitialDriveMaxFlatVel - handling.meta value / 3.6

<!-- -->

  • fBrakeBiasFront - handling.meta value * 2

<!-- -->

  • fSteeringLock - handling.meta value * 0.017453292

<!-- -->

  • fTractionCurveLateral - handling.meta value * 0.017453292

<!-- -->

  • fTractionBiasFront - handling.meta value * 2

<!-- -->

  • fSuspensionCompDamp - handling.meta value / 10

<!-- -->

  • fSuspensionReboundDamp - handling.meta value / 10

<!-- -->

  • fSuspensionBiasFront - handling.meta value * 2

<!-- -->

  • fAntiRollBarBiasFront - handling.meta value * 2

Syntax

```js vehicle.setHandling(type, value); ```

Required Arguments

  • type: string
  • value: number/string

Return value

  • Undefined

Example

```js if (mp.players.local.vehicle) &#123;

 mp.players.local.vehicle.setHandling("fMass", 3500);
 mp.players.local.vehicle.setHandling("fInitialDragCoeff", 4.77);

&#125; ```

See also