dashboardColor

Used to set or get the color of the dashboard on a vehicle.

Valid values range from 0 to 159.

Returns a number.

Declaration

vehicle.dashboardColor: number

Usage

const dashboardColor = vehicle.dashboardColor;

// OR

vehicle.dashboardColor = 139;

Real World Example

const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);
vehicle.dashboardColor = 139;

Visual

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

results matching ""

    No results matching ""