alt.Player.local.flashlightActive

Check if flashlight is active for this player.

Syntax

readonly flashlightActive: boolean;

Example Usage

const isActive = alt.Player.local.flashlightActive;

if (!isActive) {
    // I can't see anything captain!
    return;
}

// I can see everything captain!

alt.Player.local can also be a player instance from server

results matching ""

    No results matching ""