setPartBulletHoles

Used to set number of bullet holes on a vehicle part.

{
    FrontLeft: 0,
    FrontRight: 1,
    MiddleLeft: 2,
    MiddleRight: 3,
    RearLeft: 4,
    RearRight: 5,
}

Declaration

vehicle.setPartBulletHoles(partId: number, count: number): void

Usage

vehicle.setPartBulletHoles(0, 0);

Real World Example

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

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

results matching ""

    No results matching ""