Vehicle::setTyreBurst

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Description

Pops out the tyre.

Syntax

vehicle.setTyreBurst(index, onRim, p3);

Required Arguments

  • index: int (Wheel)
  • onRim: Boolean (The Tyre deflate when hitting a object)
  • p3: float (1000 Deflates the Tyre completely)

Wheels

  • 0 = wheel_lf / bike, plane or jet front
  • 1 = wheel_rf
  • 2 = wheel_lm / in 6 wheels trailer, plane or jet is first one on left
  • 3 = wheel_rm / in 6 wheels trailer, plane or jet is first one on right
  • 4 = wheel_lr / bike rear / in 6 wheels trailer, plane or jet is last one on left
  • 5 = wheel_rr / in 6 wheels trailer, plane or jet is last one on right
  • 45 = 6 wheels trailer mid wheel left
  • 47 = 6 wheels trailer mid wheel right

Return value

  • Undefined

Example

let vehicle = mp.players.local.vehicle;
    vehicle.setTyreBurst(0, false, 1000);
    vehicle.setTyreBurst(1, false, 1000);
    vehicle.setTyreBurst(4, false, 1000);
    vehicle.setTyreBurst(5, false, 1000);
// All the 4 Tyres of the vehicle will be deflated completely

See also