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

SetVehicleEngineStatus

Материал из RAGE MP Wiki Archive
Версия от 21:35, 27 ноября 2019; imported>Avoid (Created page with "This function sets the vehicle's engine on or off. {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Vehicle.SetVehicleEngineStatus(Vehicle vehicle,...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

This function sets the vehicle's engine on or off.


void NAPI.Vehicle.SetVehicleEngineStatus(Vehicle vehicle, bool turnedOn);

Parameters

  • vehicle: parameter input should be in Vehicle type
  • turnedOn: parameter input should be in bool type

Example

<syntaxhighlight lang="csharp"> NAPI.Vehicle.SetVehicleEngineStatus(vehicle, false); </syntaxhighlight>