handbrakeActive

Used to get if the handbrake is currently activated.

Returns a boolean.

Declaration

vehicle.handbrakeActive: boolean;

Usage

const isActive = vehicle.handbrakeActive;

Real World Example

Not really a useful example but here's how it could be used.

const vehicle = new alt.Vehicle(`elegy`, 0, 0, 0, 0, 0, 0);

alt.setInterval(() => {
    const isActive = vehicle.handbrakeActive;
    if (isActive) {
        console.log(`Activated Handbrake! Skkkrrrrt.`);
    }
}, 200);

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

results matching ""

    No results matching ""