Перейти к содержанию

Vehicle::setHandling

Материал из RAGE MP Wiki Archive
Версия от 16:14, 29 августа 2020; imported>Nameless
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">vehicle.setHandling(type, value);</syntaxhighlight>

Required Arguments

  • type: string
  • value: number/string

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> if (mp.players.local.vehicle) {

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

} </syntaxhighlight>

See also