manualEngineControl

Used to set or get if the vehicle should be turned on automatically or not when a player enters the vehicle.

Returns a boolean.

Declaration

vehicle.manualEngineControl: boolean;

Usage

const isManual = vehicle.manualEngineControl;

// OR

vehicle.manualEngineControl = 20;

Real World Example

const vehicle = new alt.Vehicle('sanchez', 0, 0, 0, 0, 0, 0);
vehicle.manualEngineControl = 1;

These examples assume you have vehicle created or available on server-side

results matching ""

    No results matching ""