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

SetVehicleEnginePowerMultiplier

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

This function sets the vehicle's engine power multiplier. It will activate for the player that enters this vehicle and drives it.


void NAPI.Vehicle.SetVehicleEnginePowerMultiplier(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.SetVehicleEnginePowerMultiplier(vehicle, 5.0f); </syntaxhighlight>