A tense situation for police overnight after officers arrived at a motel and found a man with a gun.

According to police investigators, the incident began early Friday morning in the 700 block of South Saint Mary's near La Villita.

According to police, they went to check on a man at the La Villita Inn around 2 a.m.

When they arrived, the man had a gun.

Police surrounded the place and after negotiations, the man surrendered.

He was taken to an emergency detention center and investigators believe he was on some type of medication.

Police said the incident was not a standoff and no one else was in danger.