The suspect, 36-year-old Gilbert Arellano III was arrested early Sunday morning after brandishing a loaded rifle in a bar at downtown Redlands, California

A California bar employee and an off-duty sheriff's deputy prevented a shooting by disarming a man who was brandishing an AR-15 semi-automatic rifle.

The suspect, 36-year-old Gilbert Arellano, had reportedly been drinking when he got into a fight at a bar in the on Saturday, according Redlands police.

He then left the bar and went to his home four minutes away to retrieve an AR-15 semi-automatic rifle and a 30-round magazine.

He returned downtown early Sunday morning and confronted three people in a parking lot, pointing the gun at one of them, the police said.

He then walked into the entrance of the Cope Building brandishing the rifle.

'When someone said something about him having a gun, he pointed the gun at them and said something to the effect of "Do you want to make something of it?",' said Redlands Police Department spokesperson Carl Baker, according to the San Bernardino Sun.

An employee of The Underground, a bar that also shared the same entrance, stopped him and attempted to get the rifle away from him.

The suspect walked into the entrance of the Cope Building brandishing the rifle

An off-duty San Bernardino County sheriff's deputy, who was also in the bar, rushed to assist the barman.

The off-duty deputy was able to disarm Arellano and restrained him, according to the report.

Redlands police arrived on scene and arrested the suspect for attempted assault with a deadly weapon.

The police determined that Arellano had additional weapons registered to him and was not allowed to possess any guns by court order. They also served a search warrant on his home on Sunday afternoon where they confiscated additional weapons.