getPartBulletHoles

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

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

Returns a number.

Declaration

vehicle.getPartBulletHoles(partId: number): number

Usage

const bulletHoles = vehicle.getPartBulletHoles(0);

Real World Example

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

console.log(`Elegy has ${bulletHoles} bullet holes.`);

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

results matching ""

    No results matching ""