Skip to main content

Vehicle::getDefaultHandling

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Client-side function

JavaScript​

Gets default vehicle handling type value.

Handling Types from handling.meta:

fInitialDriveMaxFlatVel
fBrakeBiasFront
fSteeringLock
fTractionCurveLateral
fTractionBiasFront
fSuspensionCompDamp
fSuspensionReboundDamp
fSuspensionBiasFront
fAntiRollBarBiasFront

Required Params​

  • type: string

Return value​

  • float

Syntax​

vehicle.getDefaultHandling(type);

Example​

const vehicle = mp.vehicles.new(mp.game.joaat("sultanrs"), mp.players.local.position); //create a sultanrs at player's position
const initialDriveMaxValue = vehicle.getDefaultHandling('fInitialDriveMaxFlatVel'); // get fInitialDriveMaxFlatVel default value
mp.console.logInfo(`initialDriveMaxValue is ${initialDriveMaxValue}`);