Skip to main content

Vehicle::defaultEngineBehaviour

Lets you disable the default engine behaviour (when you enter a vehicle, the player automatically turns on the engine). Setting this to false will stop the player from turning the engine on.

<b>Note:</b>

It is best to set the config flag: [PED_FLAG_STOP_ENGINE_TURNING](/player-config-flags) - to ensure the player doesn't attempt to turn the engine resulting in a strange animation.

``` mp.players.local.setConfigFlag(429, true); ```

See also