A man found with guns at President Donald Trump’s Washington, D.C. hotel was released from jail on Friday.

Bryan Moles, who was arrested Wednesday on federal weapons charges, is out on bail until his next court hearing next Friday, the U.S. Attorney's Office said in a statement.

Upon Moles' release the judge ordered he stay away from D.C. unless he meets with lawyers or must go to court. The D.C. Superior Court judge also said Moles must receive a “mental health evaluation and treatment” in Atlanta, where he will reside awaiting trial.

The judge released Moles, with multiple conditions, after a last-minute deal between the federal prosecutor and defense attorney, according to CNN.

ADVERTISEMENT

Police found two guns and dozens of rounds of ammunition in Moles’ car after he left it with the valet at Trump International Hotel. Moles was then arrested in his hotel room and charged with possession of firearms without a license and illegal possession of ammunitions.

D.C. Police Chief Peter Newsham said a "potential disaster" was avoided thanks to authorities working together and the help of a tipster.

Moles also reportedly told police he is a veteran suffering from PTSD and wanted to stay at the hotel because he likes Trump, WJLA said.

Moles' preliminary hearing in the federal court will be June 22.