I figured it out: if you have secondary headlights that belong to the vehglass material, they use the Same window tint as the car windows.

By default, the rancherxl comes with dark windows which also makes these headlights appear black.

I changed the window tint level of the rancherxl in vehicles.meta, now that issue is gone.