Vehicle::defaultEngineBehaviour

From RAGE Multiplayer Wiki
Revision as of 14:10, 22 May 2021 by Anayks (talk | contribs)

Client-Side
Function

 JavaScript



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.

If your character is twitching, you need to toggle vehicle's engine for calm your character.

JavaScript Syntax

Syntax

mp.game.vehicle.defaultEngineBehaviour = flag;

Parameters

  • flag: Boolean

Examples

Simply disables people from turning on their engine within the server.

mp.game.vehicle.defaultEngineBehaviour = false;


See also