Headlights don't work until warmed up?!

So, about a month ago, I started to go to work, realized that my headlights weren’t working, so I turned around and went home and took the truck to work. Mike got up and fooled around with them and got them working, swapped out the bulbs, blah blah blah, he also said something about burnt ends on the one?

Anyways, haven’t had any problems since then, until this morning. I left the house, realized again that my headlights weren’t working, but since it was lighter out I just went to work… by the time I got to work, my headlights were working just fine… WTF?

check grounds

Your fluid is low.