Basically a V8 in your truck wont be legal. First you would have to use a 4.6 not a 5.0 since the 5.0s were replaced in 2001??? by the 4.6. Why does this matter? You need the same year or newer engine for the truck it's going into. Next it has to come from the same class of vehicle. I don't think the Exploder and the Ranger are in the same class.
On the other hand you could do it if you have a place that will pass your car. There are no more smog referees in California since the budget cuts.
2010 MGM Taco Dbl Cab TRD offroad 4wd
*atrocity loves Toyota more than me but no i dont like the jealous tool*