-
-
Notifications
You must be signed in to change notification settings - Fork 1
Vehicle Lights
Indicator lights introduces dynamic activation of vehicle lights, indicating the direction of intended turns or lane changes. It ensures that both player and NPC vehicles convey their intentions visually, contributing to a safer and more authentic driving experience.
Indicator lights introduces dynamic activation of vehicle lights, indicating the direction of intended turns or lane changes. It ensures that both player and NPC vehicles convey their intentions visually, contributing to a safer and more authentic driving experience.
Note: Both player & NPC vehicles are supported
Fog lights are used to illuminate the road directly in front of the vehicle, improving visibility in foggy or low-visibility conditions. They can be toggled on or off manually by the player.
Reverse lights activate when the vehicle is put into reverse gear, providing illumination behind the vehicle and signaling to other road users that the vehicle is moving backward. This feature is essential for safe reversing and parking.
Brake lights illuminate when the vehicle’s brake pedal is pressed, alerting drivers behind to the vehicle's deceleration or stop. This feature helps maintain safe distances and avoid rear-end collisions.
- Left Shift: Turns off the turn signal lights.
- Z: Activates the left turn signal.
- X: Activates both turn signal lights simultaneously.
-
C: Activates the right turn signal.
- J: Toggles fog lights
- G: Toggles long headlights
-
indicator_lf / turnl_lf : Left Front Indicator.
Color: 183 255 0
-
indicator_rf / turnl_rf : Right Front Indicator.
Color: 255 58 0
-
indicator_lm / turnl_lm : Left Middle Indicator.
Color: 182 255 0
-
indicator_rm / turnl_rm : Right Middle Indicator.
Color: 255 57 0
-
indicator_lr / turnl_lr : Left Rear Indicator.
Color: 181 255 0
-
indicator_rr / turnl_rr : Right Rear Indicator.
Color: 255 56 0
-
foglight_l / fogl_l: Left Fog Light.
Color: 255 174 0
-
foglight_r / fogl_r: Right Fog Light.
Color: 0 255 199
-
reversingl_l / revl_l: Left Reverse Light.
Color: 255 173 0
-
reversingl_r / revl_r: Right Reverse Light.
Color: 0 255 198
-
breaklight_l / breakl_l: Left Brake Light.
Color: 184 255 0
-
breaklight_r / breakl_r: Right Brake Light.
Color: 255 59 0
- You can assign a different texture for indicator lights other than the vanilla
vehiclelights128
texture to your vehicle. It should be calledvehiclelights
. In order for it to light up, you should also have another texture calledvehiclelights_on
with the brighter image. This also applies to fog lights, brake lights, reverse lights, headlights and taillights.
This variant is only available for backwards compatibility with ImVehFt adapted vehicles. Prefer switching over to the recommended method. Support from this variant is limited & doesn't support ModelExtras specific features.
Add these to the end of the node name.
- RR red color values in HEX
- GG green color values in HEX
- BB blue color values in HEX
- X light type
- Y corona size
- Z shadow size
Add them as a child node to the root node. Example:
Rotates the shadow texture to specified rotation value.
Each node has its own default rotation already set. Provide the offset amount (-45/+45) here.
Note: Anything between -360 to 360 is supported.
Offset of the shadow from car center.
10, 20, 30, 50, 100...
This specifies which car part that light is attached to. It'll switch the light functionality off when that part is damaged/ detached.
-
fb
: Enable only when the front bumper is OK (not damaged) -
rb
: Enable only when the rear bumper is OK (not damaged) -
wl
: Enable only when the left wing is OK (not damaged) -
wr
: Enable only when the right wing is OK (not damaged)
Specifies which shadow texture should be used.
-
0
: LIGHT_TYPE_DIRECTIONAL -
1
: LIGHT_TYPE_DIRECTIONAL_INVERSED -
2
: LIGHT_TYPE_NON_DIRECTIONAL
10, 20, 30, 50, 100...
10, 20, 30, 50, 100...