1991 chevy Silverado

I have a 1991 lifted chevy truck and the original fuel tank will not fit underneath the truck because of the custom made transfer case. Is it safe and legal to bolt the fuel tank in the bed of the truck with a casing over top.