Documentation / EP-ELS

Vehicle JSON & extras

Add a vehicle

Copy vehicles/polschlagenxs5.json to a new file named after your vehicle spawn name. Set model to the same spawn name. Adjust extras to your actual vehicle. All JSON syntax must be valid; do not insert comments or trailing commas. A blank frame [] switches the controlled pattern extras off for that frame.

Flash patterns

blue, grille and amber accept interval (milliseconds), controlled (the extras owned by that pattern), and pattern (a sequence of arrays of extras). Example from the supplied Schlagen profile:

json
{
  "interval": 70,
  "controlled": [
    1,
    2
  ],
  "pattern": [
    [
      1
    ],
    [],
    [
      1
    ],
    [],
    [],
    [
      2
    ],
    [],
    [
      2
    ],
    [],
    []
  ]
}

Static and special lights

  • green: static extras.
  • stopPolice: combined alternating STOP/POLICE pattern; takes precedence over separate STOP/FOLLOW actions.
  • stopFront, stopRear, followFront, followRear: separate message board mappings; stopBoth/followBoth use both sides where configured.
  • white: fixed or rotating searchlight settings; fixed combined mode uses front extras.
  • headlights: native high beam flash options.
  • undercover and roofBeacon: optional beacon, requiring a valid model.

Environment lights

environment sets distance, range, intensity, sideSpread and per-color overrides (intensityByColor and rangeByColor). environmentLights maps extra IDs to Color, AllowEnvLight, Position, OffsetX/Y/Z. Bone, AdjustX/Y/Z, ExactPosition, Range and Intensity overrides are supported. Calibrate to the specific vehicle instead of reusing offsets blindly.

Panel positions

uiButtons maps action IDs to numbered positions. Numbers are sorted, gaps compacted; duplicate numbers sort alphabetically. Omit actions that the vehicle cannot use. Legacy ordered arrays and uiSlots maps are accepted, but remove uiSlots when migrating.

json
{
  "uiButtons": {
    "blue": 1,
    "green": 2,
    "amber": 3,
    "stopPolice": 4,
    "siren": 5,
    "megaphone": 6,
    "white": 7
  }
}

Included example profiles

  • ambulance.json
  • ambustroper.json
  • amicels.json
  • bwrtmx7002.json
  • kmarmatrixtrailer.json
  • police.json
  • police2.json
  • police3.json
  • police4.json
  • polschlagenxs5.json

Restart EP-ELS after edits. Use F8 elsconfig <extra> and elsenvtest to check placement and visual effects.

Login Required

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