Documentation / EP-ELS

Custom actions & matrix trailers

Custom extras

Define a custom_ action in Config.UI.buttons and associate it with unused extras through customExtras in the vehicle JSON. Include it in uiButtons.

Matrix messages

The supplied kmarmatrixtrailer.json uses five exclusive matrix actions. customPatterns defines interval, controlled and pattern for custom actions. exclusiveActions defines action groups where selecting one disables the others. Selecting the active message turns it off.

Trailer mode

The bundled matrix example is configured as a driveable model (trailer: false). For actual towable models, use trailer: true and test attached-trailer control. Server validation checks seat, routing bucket and proximity, and checks attachment when the runtime exposes the appropriate native. Proximity fallback alone does not prove attachment.

Example configuration

json
{
  "model": "kmarmatrixtrailer",
  "trailer": false,
  "customPatterns": {
    "custom_matrix_cross": {
      "interval": 100,
      "controlled": [
        1,
        4
      ],
      "pattern": [
        [
          1
        ],
        [
          1
        ],
        [
          1
        ],
        [
          1
        ],
        [],
        [
          4
        ],
        [
          4
        ],
        [
          4
        ],
        [
          4
        ],
        []
      ]
    },
    "custom_matrix_left": {
      "interval": 100,
      "controlled": [
        5,
        6
      ],
      "pattern": [
        [
          5
        ],
        [
          5
        ],
        [
          5
        ],
        [
          5
        ],
        [],
        [
          6
        ],
        [
          6
        ],
        [
          6
        ],
        [
          6
        ],
        []
      ]
    },
    "custom_matrix_right": {
      "interval": 100,
      "controlled": [
        7,
        8
      ],
      "pattern": [
        [
          7
        ],
        [
          7
        ],
        [
          7
        ],
        [
          7
        ],
        [],
        [
          8
        ],
        [
          8
        ],
        [
          8
        ],
        [
          8
        ],
        []
      ]
    }
  },
  "customExtras": {
    "custom_matrix_closed": [
      11
    ],
    "custom_matrix_30": [
      12
    ]
  },
  "exclusiveActions": [
    [
      "custom_matrix_cross",
      "custom_matrix_left",
      "custom_matrix_right",
      "custom_matrix_closed",
      "custom_matrix_30"
    ]
  ],
  "uiButtons": {
    "custom_matrix_cross": 1,
    "custom_matrix_left": 2,
    "custom_matrix_right": 3,
    "custom_matrix_closed": 4,
    "custom_matrix_30": 5
  }
}

Calibration

The matrix emitter offsets and colors must be checked against the actual vehicle model. Test every message and exclusivity rule with multiple players.

Login Required

You need to login with your CFX account before adding packages to your basket.