setBumperDamageLevel
Used to set / reset the bumper damage level.
Bumper IDs
{
FRONT: 0,
REAR: 1
}
Damage Values
{
NotDamaged: 0,
Damaged: 1,
None: 2
}
Declaration
vehicle.setBumperDamageLevel(window: number, health: number): void;
Usage
vehicle.setBumperDamageLevel(0, 0);
Real World Example
const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
vehicle.setBumperDamageLevel(0, 0);
These examples assume you have vehicle created or available on server-side