What Red said, and,

So you're saying you took all the electronics from the '04 engine wiring harness and put it in a mechanical tb truck? That's no problem, but if you're still using the '02 pcm, it won't work, you'll have to use the '04 pcm, but vats will have to be removed. Plus, the body control module might throw a fit on some things, but it will work.

What did you have in the truck before and what engine harness, pcm, wiring are you using?

thanks,
allen