Relativistic Outflow Drives Gamma-Ray Emission in 3C345