Need help with scripting a custom ELS system

There was a script that already does this with default vehicle lighting.

???