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

SetVehicleEngineTorqueMultiplier

Материал из RAGE MP Wiki Archive
Версия от 15:10, 23 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This function sets the engine torque multiplier of a vehicle. It activates when a player enters and starts driving the vehicle.


void NAPI.Vehicle.SetVehicleEngineTorqueMultiplier(Vehicle vehicle, float mult);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • mult: parameter input should be in float type

Example

<syntaxhighlight lang="csharp"> NAPI.Vehicle.SetVehicleEngineTorqueMultiplier(vehicle, 5.0f); </syntaxhighlight>