Automatic Pop-up Headlights for various add-on vehicles 3.5.0

Automatic Pop-up Headlights for various add-on vehicles 3.5.0

Update 3.5.0 Added support for multiple doors per vehicle. Also added the Mazda RX-7 by @TGIJ to the default list.

Note: Do not use any vehicle godmode with this mod. Vehicle godmode will close all open headlights, while this mod tries to keep the lights open. As a result, you will end up with the popups constantly opening and closing.

What’s new in version 3.0?
Finally, what you’ve all been waiting for…
True slow animations for every car!
You can now adjust the exact speed you want your headlights to move at, and even leave your headlights at a certain angle – that’s right, you can choose between completely opened, completely closed, and every angle in-between!

That’s not all. You now no longer have to open the script to add your own vehicles. Simply navigate to my PopupHeadlights/VehicleLists folder and open the cfg file that matches what kind of headlights the vehicle uses (type of door, or scoop). Then simply type the vehicle’s spawn name in a new line (make sure there are no spaces!) and save the cfg file.

Lastly, this new system also supports a new type of headlight method: “scoop” headlights. This works by making the headlight model of a vehicle be recognized as a scoop. This makes the animation extra smooth and imo is the best method.

As this is a new system, there are probably bugs lurking around. Please let me know in the comments. Thank you!

What was new in version 2.0?
The pop up lights no longer rely on whether your lights are on! This means you can pop up the headlights whenever you want, without having to turn on the vehicle lights! This also means you can have your headlights turned on without having the pop-up lights up, if you’d like. In other words, full control of the pop-up headlights!

How to pop up the headlights:
Double tap the headlights button quickly (H on keyboard, Dpad Right on gamepad controllers).

How to turn on/off lights and highbeams:
Hold the headlights button for around 1 second (H on keyboard, Dpad Right on gamepad controllers).

How to adjust the headlight angle manually:
For gamepads, you can either push UP or DOWN on the left stick (“scoop” headlight vehicles only), or hold Dpad Right and push UP or DOWN on the right stick (all other vehicles). I will probably make the controls the same in the next update.
For keyboards, you can choose your own keys in the settings.ini. The default is O for up, and L for down.

Bugs I am aware of
– The popup headlights may move slightly while driving. This is because the game thinks the headlights are an open door, and realistically that’s what would happen to a door.. however, this only affects “door headlight” vehicles that have an animation. Vehicles that do not have a headlight animation (like the 1995 Toyota MR2 GT by @ElyZium and the 1997 Lamborghini Diablo SV by @Machyna) are not affected by this, because the animation is completely controlled by this script.

Requirements
ScripthookV
ScripthookV.NET

Installation
Place the “scripts” folder in your GTA V directory where GTA5.exe is located

Credits:

@Ezio_Cuenca for beta testing the 2.0 update, and to @ImNotMentaL for his contribution to a certain Native function that made update 3.0 possible!

Download mod

FileFile size
zip Auto-Headlights 3.5.07 KB

Leave a Reply

Your email address will not be published. Required fields are marked *