Vehicle::defaultEngineBehaviour: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "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...")
 
No edit summary
Line 1: Line 1:
{{ClientsideJsFunction}}
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.
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.


{{JSContainer|
== Syntax ==
== Syntax ==


Line 16: Line 19:
mp.game.vehicle.defaultEngineBehaviour = false;
mp.game.vehicle.defaultEngineBehaviour = false;
</pre>
</pre>
}}


==See also==
==See also==
{{Vehicle_s_function_c}}
{{Vehicle_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]

Revision as of 20:06, 17 December 2018

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.

JavaScript Syntax

Syntax

mp.game.vehicle.defaultEngineBehaviour = enabled;

Parameters

  • enabled: Boolean

Examples

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

mp.game.vehicle.defaultEngineBehaviour = false;


See also