A 17-year-old was arrested at a Cobb County entertainment center with a stolen gun after being wanted for months in connection with an Atlanta theft, authorities said.

An off-duty Atlanta police detective is being credited with the crucial tip that allowed police to take the teenager into custody over the weekend.

Adonte Jamal Thomas of Hampton was arrested Sunday after the off-duty officer learned that the teen was with his friends at Main Event Atlanta, police spokesman Carlos Campos said.

When Cobb police arrived at the entertainment venue in the 3000 block of Cobb Parkway to arrest Thomas on outstanding warrants out of Atlanta, officers said they found him with a stolen gun and drugs.

Thomas is a documented gang member, police told Channel 2 Action News. Police have warrants for his arrest in connection with a November auto theft, Campos said.

Thomas was booked into the Cobb jail on five charges, including three felonies, jail records show. Those include counts of theft by receiving, possession of a schedule II controlled substance and firearm possession.

He was denied bond since he has a hold out of Fulton County for the outstanding charges stemming from the Atlanta incident, police said.