Перейти к содержанию

Vehicle::defaultEngineBehaviour

Материал из RAGE MP Wiki Archive

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.

Note:
It is best to set the config flag: PED_FLAG_STOP_ENGINE_TURNING - to ensure the player doesn't attempt to turn the engine resulting in a strange animation.

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


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