Do you have a test light? Let me know I will tell you what to do.
Alternator is not charging the battery. When you turn on the lights the system doesn't have enough power to keep the engine running.
The Starter, Is Bad.
With a battery or solar power!
The battery ,which gives power to the truck, looses its power because the lights use power from the battery to work. It's just like a batery for a toy.
When your lights are on and your engine is not running you are taking the power for your car lights directly from your battery. If you leave them on long enough, you will run down your battery and your car will not start. Then you will need a jump.
check and clean the battery terminals
Check headlights and dashboard lights first. If no/minimal power for the lights then replace battery.
charge the battery
The hazard lights get their power from the battery so if the battery is dead they will not work.
Same thing happened to me, I just tightened my + and - battery terminals and it worked. Hope it's that simple for you!
needs a new battery
The magnatron is not recharging the battery or the lights are drawing too much power to allow the battery to recharge. The best thing you can do is when you are done riding, turn the lights off and allow the machine to run for a while to recharge that battery.