Skip to main content

SetVehicleEngineStatus

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

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

{{#tag:syntaxhighlight| Vehicle.SetVehicleEngineStatus(vehicle, false); |lang=csharp}} }}