If the body is still in good shape, get a replacement engine with a warranty. Probably would last a lot longer than a used truck for the same cost.
Sometimes a used vehicle can be a good deal or a nightmare... to many unknowns even if it has been inspected.