Vehicle::setEngineOn

From RAGE Multiplayer Wiki
Revision as of 00:53, 27 November 2017 by Thource (talk | contribs)

Starts or stops the engine on the specified vehicle.

vehicle: The vehicle to start or stop the engine on.
value: true to turn the vehicle on; false to turn it off.
instantly: if true, the vehicle will be set to the state immediately; otherwise, the current driver will physically turn on or off the engine.
disableEngine: if true, player won't be able to start the engine

Syntax

vehicle.setEngineOn(value, instantly, disableEngine);

Required Arguments

  • value: Boolean
  • instantly: Boolean
  • disableEngine: Boolean

Return value

  • Undefined

Example

// todo

See also