If I leave my truck without cranking it for anymore than a day 5he battery is dead due to this problem

it shifts good until you drive it awhile.

codes co283,455,292,228,

A/C will blow cold for a while. Then cold goes away. Does not blow hot air. Just draws warm air in from outside.

Interior and exterior lighting pulsate. No rhyme or reason. Comes and goes. Happens at all speeds. Even while idling.

My truck has been giving the intermittent message of "service 4 wheel drive". Not only that but there things happen and some at the same times. The fuel gauge goes crazy or sits on empty. The ABS light comes on; brake light; air bag indicator; gauge lights go on and off; and / or a beeping sound that's stays on a while. These happen while driving and may last up to five minutes. Each time the service 4 wheel drive message usually appears as well. Seems like a short somewhere. Do you have an answer?

The bed brake lights are not working, but all other lights including the center mount brake light are working fine. I checked every fuse in both boxes and all four bulbs and they all appear fine. Since the center mount brake light works when the pedal is pressed it appears that the brake switch is not the issue. Does anyone have any ideas for what else could cause this? Thanks for your help.

lights flicker, abs light comes on i changes battery, cleaned terminals, alternator been tested it good

Dash lights or all my panel lights go off &ion while driving
Head lights no problem work fine
In the dark cannot see now fast I'm going. They come back on
I'm thinking head light switch that's to much money for a guess ??