on that year truck, it's likely a switch with bad contacts, bad ground, corroded connector, damaged wire, even bad bulb. If you dont have a FSM, a must for me, you need to start methodically checking. Find the switch and check both sides of it with a multimeter (preferred) or test light.
Does it flicker while in motion, truck running at idle, ignition switch on, but not running or all the time while shifter in 4wd. With truck off, ignition on run, try shifting in out of 4wd rapidly contacts in switch could be dirty, corroded. If no good, perform testing as I mentioned above.
Let us know what you find.
Cheers, Ron