roofState

Used to get whether or not the roof window of a vehicle is open, applies to convertibles as well.

Returns a boolean.

Declaration

vehicle.roofState: boolean;

Usage

const isOpen = vehicle.roofState;

Real World Example

const vehicle = new alt.Vehicle('issi', 0, 0, 0, 0, 0, 0);
const isOpen = vehicle.roofState;

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

results matching ""

    No results matching ""