— A Charlotte rapper was detained Monday night hours after he passed out toys to dozens of North Carolina families. DaBaby, a Charlotte native, performed in the Queen City before he surprised 200 kids. The rapper, whose real name is Jonathan Kirk, gave away Xbox game systems, bikes, headphones and other toys to families facing tough times.

In a tweet, he said that police were harassing him and wasting resources better used to fight violent crime.

DaBaby said he's practicing what his mother has been preaching for years. His mom, who helped him hand out presents on Monday, said she taught him the importance of giving back when he was young.

To see her son do something big like this tugs at her heart, she said.

"It's just such a blessing," she said. "I can't say that more than enough...when I came here today just to see how beautiful and well organized this is my heart was elated."

But the night didn't end there. According to NBC Charlotte, DaBaby was detained by the Charlotte-Mecklenburg Police Department in the parking lot of Bojangles' Arena late Monday evening.

The Charlotte-Mecklenburg Police Department said DaBaby was not arrested, but he was detained and charged with misdemeanor possession of marijuana and with resisting an officer. Police said he was given a citation for both charges.

In an interview posted on YouTube, DaBaby said police unlawfully searched his car while he performed. He said he did not resist officers and said he has a video to prove it. "The police department just did me on the holidays in front of my daughter when I was putting on a show for my city," he said.

It wasn't the first time DaBaby has clashed with police. The rapper was arrested in June and later found guilty of misdemeanor carrying a concealed weapon, according to The Charlotte Observer.

"Every time. There's nobody when I pull up in the parking lot, the second I get out the car, 15 cops come around," Kirk told NBC Charlotte.