It can be done while in the truck, but you don't want to do it. The oil pick up has to come out with the pan for enough clearance to get the pan out and then you have to get it bolted back in while installing the pan. Not an easy task. Plus it will probably take almost as long as pulling the engine and **** you off even more.