Engine dies when hot, in gear

How close is the fuel line to the header where it runs along the frame rail on the passenger's side? Does it do it in cool weather too?