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

GetVehicleEngineStatus

Материал из RAGE MP Wiki Archive

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>