UFC featherweight champion Conor McGregor issued an apology on Friday after a photo he posted brandishing a gun stirred up controversy in his native Ireland.

The photo showed McGregor in one of his cars holding a gun with the caption that read 'put the fight game in the bag and step away from the vehicle'.

1. Rolling Stone, thank you for putting me as one of your top 25 sex symbols of 2015! My Mother will be delighted and proud! 2. ESPN, FOX, BT Sports, MMA Fighting, Yahoo, MMA Junkie and Sherdog thank you all for awarding me fighter of the year 2015! I appreciate all the hardworking media and their love and commitment to the sport is truly valued. 3. Fighters Only MMA Awards, thank you for the nominations for Fighter of the Year, KO of the Year, International Fighter of the year. I will be in Las Vegas to attend the event and collect all my awards. 4. Floyd Mayweather, don't ever bring race into my success again. I am an Irishman. My people have been oppressed our entire existence. And still very much are. I understand the feeling of prejudice. It is a feeling that is deep in my blood. In my family's long history of warfare there was a time where just having the name 'McGregor' was punishable by death. Do not ever put me in a bracket like this again. If you want we can organise a fight no problem. I will give you a fair 80/20 split purse in my favour seen as your last fight bombed at every area of revenue. At 27 years of age I now hold the key to this game. The game answers to me now. 5. Media instigators/An Garda Siochana. I apologise for having the air-soft in public. I was simply rehearsing for a potential upcoming film role. I understand that the more traffic a story can get the more revenue it generates. So I understand and respect that the media must create these stories and these situations even if at times it is at other people's expense. We've all got to eat. And I eat well. So I will not complain. 6. My next fight. What can I say, it's just another night of easy work for me. I don't just own the game. I run it too.

A photo posted by Conor McGregor Official (@thenotoriousmma) on

More from FoxSports

Following reports that Irish police were looking into the matter because the country has extremely strict gun laws -- especially when it comes to showing firearms in public places -- McGregor explained that the photo was merely done while he as practicing for an upcoming film role.

"I apologize for having the air-soft in public," McGregor wrote on his Instagram on Friday night. "I was simply rehearsing for a potential upcoming film role."

Gardai, Ireland's national police force, hasn't issued an additional statement since originally saying they were looking into the matter.

Sources told FOX Sports on Friday that police are investigating the matter with McGregor's full cooperation but he's not expected to face any charges as a result.

The film role McGregor is referencing may be the offer he received to appear in Vin Diesel's upcoming movie "xXx: The Return of Xander Cage". Just this week, actress Ruby Rose also landed a part in the movie and posted a similar photo as McGregor on her social media accounts as well.

XXX 3 training.

A photo posted by Ruby Rose (@rubyrose) on

McGregor also stated in his post that he understands why the story ended up as news and he doesn't hold it against media outlets who ran the report.

"I understand that the more traffic a story can get the more revenue it generates. So I understand and respect that the media must create these stories and these situations even if at times it is at other people's expense," McGregor stated.

"We've all got to eat. And I eat well. So I will not complain."