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

GetVehicleEngineStatus

Материал из RAGE MP Wiki Archive
Версия от 17:03, 12 декабря 2019; imported>Avoid (Created page with "Returns the vehicle's engline status. {{CSharpContainer| {{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}Vehicle.GetVehicleEngineStatus(Vehicle vehicle);}} {{Paramete...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Returns the vehicle's engline status.


bool NAPI.Vehicle.GetVehicleEngineStatus(Vehicle vehicle);

Parameters

  • vehicle: parameter input should be in Vehicle type

NOTE: This function returns the engine status in bool type.

Example

<syntaxhighlight lang="csharp"> bool engineOn = NAPI.Vehicle.GetVehicleEngineStatus(vehicle); if(engineOn) {

  //Engine is on..

} </syntaxhighlight>