Take the best deal you can make for the "total" and then do a buyback of the vehicle for salvage value. Most insurance companies are happy to let you have the damaged car/truck back for pennies on the dollar. "Total" is just an accounting term the insurance pirates use, which doesn't necessarily mean the vehicle isn't repairable. You will probably get back most, if not all of your purchase price, and still have a truck to rebuild. I've done that on a few vehicles when people ran into me and their insurance company settled the claim.
Jerry