Vehicle::setBurnout

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

On accelerating, spins the driven wheels with the others braked, so you don't go anywhere.

Syntax

vehicle.setBurnout(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

mp.events.add('breaktyres', (vehicle) => { //Event when called defaltes the 4 tyres of the vehicle and Set the vehicle out of control for 2 seconds.
    vehicle.setTyreBurst(0, false, 1000);
    vehicle.setTyreBurst(1, false, 1000);
    vehicle.setTyreBurst(4, false, 1000);
    vehicle.setTyreBurst(5, false, 1000);
    vehicle.setBurnout(true);
    setTimeout(_ => {
        vehicle.setBurnout(false);
    }, 2000)
})

See also