Our used motorhome came to us with an electric\gas water heater..Problem is the electric part is a HOT ROD add on,with an extension cord that has to be plugged in around front of the kitchen cabinet....
I'm no expert but be sure the replacement WH will fit in the same space and have the electric/gas connections in the same place also to avoid wiring/piping problems. All water heaters are not the same...