neonColor

Used to set or get vehicle neon color.

Returns a { r: number, g: number, b: number, a: number }.

Declaration

vehicle.neonColor: { r: number, g: number, b: number, a: number };

Usage

const currentNeon = vehicle.neonColor;

// OR

vehicle.neonColor = {
    r: 255,
    g: 0,
    b: 0,
    a: 255
};

Real World Example

const vehicle = new alt.Vehicle('sanchez', 0, 0, 0, 0, 0, 0);
vehicle.neon = {
    front: true,
    back: true,
    left: true,
    right: true
};

vehicle.neonColor = {
    r: 255,
    g: 0,
    b: 0,
    a: 255
};

Visual

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

results matching ""

    No results matching ""