daylightOn

Used to get the current state of the daylight lights on a vehicle.

Returns a boolean.

Declaration

vehicle.daylightOn: boolean

Usage

const daylightOn = vehicle.daylightOn;

Real World Example

function enteredVehicle(player, vehicle, seat) {
    console.log(`Daylights are set to: ${vehicle.daylightOn}`);
}

alt.on('playerEnteredVehicle', enteredVehicle);

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

results matching ""

    No results matching ""