Ga naar inhoud
BRABO CustomsBRABO CUSTOMS

Unique extras

The unique property in vehicle configs allows you to define which extras should automatically be disabled when a specific lighting feature is activated.

This is useful when different lighting functions share conflicting extras or should not be active at the same time.


Primary Use Case: Traffic Advisor

The most common use is for the traffic advisor, where only one direction should be active at a time:

unique = {
    directLinks = {5, 6, 7, 8},
    directRechts = {3, 4, 7, 8},
    directCenter = {3, 4, 5, 6},
}

With this configuration:

  • Activating directLinks → turns off extras {5,6,7,8}
  • Activating directRechts → turns off extras {3,4,7,8}
  • Activating directCenter → turns off extras {3,4,5,6}

The extras belonging to the activated light type itself are not automatically determined by the script. You must explicitly list all conflicting extras that need to be disabled.


How It Works

  1. 1

    Step 1

    The script checks whether the activated light type exists in the unique table.

  2. 2

    Step 2

    It retrieves the extras listed for that specific light type.

  3. 3

    Step 3

    All listed extras are turned off.

  4. 4

    Step 4

    The requested light type is then activated normally.


Custom Unique Configurations

You're not limited to traffic advisor directions. Any light type can disable a custom set of conflicting extras:

-- Example: Activating cruise lights disables the work-light extras
-- Activating work lights disables the cruise-light extras
unique = {
    steadyBlue = {8},
    steadyWhite = {7},
}

With this configuration:

  • Activating steadyBlue turns off extra {8}
  • Activating steadyWhite turns off extra {7}

Important Notes

  • The extras listed for a light type are the extras that will be turned off when that light type is activated.
  • The listed extras do not need to be the same as the extras used by the activated light type.
  • Make sure every conflicting extra is included in the appropriate list.
  • The unique property is optional. Omit it entirely if no extras need to be disabled automatically.