Welcome Visitor! Please take a few seconds and Register for our forum. Even if you don't want to post, you can still 'Like' and react to posts.
First, welcome to TRS!!Since there are about 47 different things that could cause that problem you are going to need to check a few things and give a little more information before anyone can help you diagnose this problem.
Could be:
Electronic Engine Control Module
Ignition Control Module
Coil Packs
Loose wire
One tiny missing bolt from the ICM that you have overlooked 200 times (Don't ask...)
I suggest a Haynes or Chilton's manual for your year truck.
Autozone or most any parts store will give you a free diagnostic check with their code scanner, which will probably be your best starting point.
I can tell, though, that since this is your first post and you haven't added anything in a week that you have probably figured it out...