the sender will attach to the F post

power to the E post

...pic...


if your new gauge is 12 volts then you don't need the resistor
check the back of the gauge for markings
if your new gauge is 6v the place the resistor on the power side, not the sender.