Dying GMC pickup

Somebody I know has a 4 cylinder GMC truck (somewhat newer, mostly computer-run). He says that it runs fine for about 5 minutes, and then it dies and won’t start again. He has replaced all the sensors but isn’t having any luck. He has also redone the fuel system (new pump and filter). Any help would be appreciated. I am assuming it’s got a throttle body.