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

Returns a boolean.


vehicle.roofState: boolean;


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 ""