getArmoredWindowShootCount

Used to get the amount of shots taken on a specific window id.

Windows

{
    VEH_EXT_WINDSCREEN: 0,
    VEH_EXT_WINDSCREEN_R: 1,
    VEH_EXT_WINDOW_LF: 2,
    VEH_EXT_WINDOW_RF: 3,
    VEH_EXT_WINDOW_LR: 4,
    VEH_EXT_WINDOW_RR: 5,
    VEH_EXT_WINDOW_LM: 6,
    VEH_EXT_WINDOW_RM: 7
}

LF = Left Front, RF = Right Front, etc.

Returns a number.

Declaration

vehicle.getArmoredWindowShootCount(window: number): number;

Usage

const shootCount = vehicle.getArmoredWindowShootCount();

Real World Example

May be more useful to see it on a vehicle with armored windows.

const vehicle = new alt.Vehicle('riot', 0, 0, 0, 0, 0, 0);
const shootCount = vehicle.getArmoredWindowShootCount(0);

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

results matching ""

    No results matching ""