The script makes trailer headlights work (only if the model has headlights provided by the author), which are attached to the player’s car. Also, when braking, the brake light is activated, and when reversing, the brake light flashes in emergency mode. This works for double trailers too. Also, the headlights on cars and trailers automatically turn off if the player gets out of the car.
ADDED in the second version: 1) Eliminated the blinking of the brake light when braking (now it blinks only when reversing); 2) Now on the car itself, when reversing, the brake light flashes in emergency mode in the same way as on a trailer; 3) The headlights on the car and trailer turn on and off at the same time; 4) Added a sound signal when the car is moving in reverse (for worker class cars; this is the 8th parameter of the car characteristics in the vehicles.ide file).