isWindowOpened

Used to get if a window is currently opened / down.

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
}

Returns a boolean.

Declaration

vehicle.isWindowOpened(window: number): boolean;

Usage

const isWindowOpened = vehicle.isWindowOpened();

Real World Example

const vehicle = new alt.Vehicle('riot', 0, 0, 0, 0, 0, 0);
const isWindowOpened = vehicle.isWindowOpened(2);

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

results matching ""

    No results matching ""