Rap star Lil Wayne says he did not perform as scheduled at a Miami-area hip-hop festival because he was searched by law enforcement officers.

Lil Wayne stated on social media Saturday that he would not perform at the Rolling Loud festival at Hard Rock Stadium in Miami Gardens because police “made it mandatory” that he was searched before the show.

It wasn’t clear Sunday which police agency or security company was involved.

The rapper, whose real name is Dwayne Michael Carter Jr., was a headliner at the show. In his Twitter post, he said he couldn’t go on.

“To all my fans who came to see me at Rolling Loud, I’m sorry but I won’t be performing. The Festival Police (Not Rolling Loud) made it mandatory that I had to be policed and checked to get on the stadium grounds. I do not and will not ever settle for being policed to do my job and give you guys a great show.”

The Miami-Dade Police department was the lead agency policing the grounds, although a variety of other law enforcement agencies were on site, to assist in the arrest of Kodak Black, who was arrested for weapons possession charges.

Rolling Loud is slated to continue today, with performances by Kid Cudi, Lil Uzi, Gucci Mane, Tyga, DMX, Lil Pump and others.

RELATED: Rapper Kodak Black arrested in Miami on weapons charges