GetVehicleMaxAcceleration

From RAGE Multiplayer Wiki
Revision as of 16:46, 12 December 2019 by Avoid (talk | contribs) (Created page with "Returns the vehicle's max acceleration. {{CSharpContainer| {{#tag:pre|float {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleMaxAcceleration(VehicleHash model);}} {{...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the vehicle's max acceleration.


C# Syntax

float NAPI.Vehicle.GetVehicleMaxAcceleration(VehicleHash model);

Parameters

  • model: parameter input should be in VehicleHash type

NOTE: This function returns the traction in float type.

Example

float maxAcceleration = NAPI.Vehicle.GetVehicleMaxAcceleration(model);