Street credibility might be a respected element of hip-hop, but too much of it can get you into some serious trouble. That's a reality 20-year-old Dallas-based rapper NaNa, born Nykees Earl Campbell, finds himself dealing with after a judge used his own lyrics to justify handing him a 12-year prison sentence last Wednesday (July 18).

According to Dallas News, U.S. District Judge Barbara Lynn handed the rapper the hefty sentence after matching up his lyrics with actual crimes he was suspected of committing. One of those crimes he rapped about detailed the story of robbery in which the person rapping shot someone in the face eight times.

"You're bragging about shooting a person," Judge Lynn said in court. "It's violence times 10 at every phase."

Considering that NaNa is being sentenced because of lyrics about violence, you would expect that he would actually be getting charged with a violent crime. The reality is that NaNa, who is said to be a member of the YNB Stretch Gang, is being sentenced for his pleading guilty for cocaine distribution back in February. The YNB Stretch Gang is believed to have played a big role in crime waves in the city.

Judge Lynn believes that NaNa's lyrics about shooting someone eight times in the face justifies giving the rapper a harsher sentence. He was originally facing a six-year stint.

While the idea of using rap lyrics against a suspect in court isn't a new one, it's not all that often that you see that sort of thing play out. Back in 2014, it was reported that prosecutors would use Bobby Shmurda's "Hot Nigga" lyrics to make their case against the rapper, who is currently doing prison time for conspiracy and criminal possession of a weapon. Ultimately, though, that wasn't the case.

NaNa's attorney, Dianne Jones McVay, says the judge doesn't have anything besides rap lyrics to hand the rapper this 12-year sentence.

Check Out the 2018 Hip-Hop Music Festivals You Need to See

More From HOT 99.1