Police have put planners of a party dubbed Project X on notice, saying any illegalities committed will be dealt with according to the law.

A tweet posted on the Kenya National Police Service account said the party as announced could be associated with activities that “run counter to our moral fabric and in breach of law”.

“We are taking action aimed at establishing what the organisers are planning,” a statement from the police read.

“We will not allow events where illegalities are committed to take place.”

The party slated for March 12, at an undisclosed location in Nairobi’s plush Kileleshwa estate, is named after a 2012 Hollywood movie with the same title.

In the movie, one of the characters (Thomas) was celebrating a birthday initially intended to be a small ceremony with a handful of friends.

The celebration quickly turned into a drug-induced, sexually charged orgy which forced police in the area to intervene.

The announcement of the Kileleshwa party caused a social media uproar over the nature of activities included on the poster.

“8 Days to go to the biggest celebration of bad behavior in the +254... Chiqs... Dudes... and a whole lot of booze...no rules...no regulations...everything goes," a thread sent via messaging app WhatsApp read.

"...carry your own high... Whether it's herbs... Pills...everything is legal advance tickets are almost sold out!! Get the few remaining at selbected outlets [sic].”

Tickets for the event have been priced from Sh500 in advance, Sh1,000 at the gate and Sh3,500 for the VIP, and were available at outlets TRM's Bobo shop, Game Masters and Inntech in the CBD, and Bonk at the Junction mall.

“No one goes back home a virgin” and "Old enough to know it's wrong, but young enough not to give a f**k" are some of the phrases on the posters that led to the social media outcry.

Nominated ODM MP Stephen Mwaura and Films Classification board CEO Ezekiel Mutua were among those who called for the banning of the party.

“This sex party called Project X circulating on social media which is to happen on 12th needs to be stopped at all costs. We cannot allow people to cash in on our vulnerable youth,” wrote Mwaura posted on his Facebook account.

Mutua called for the arrest of the people selling tickets whose numbers were shared on the WhatsApp messages. “Could anyone be having information on where exactly these tickets are being sold or the venue for the proposed party,” Mutua quizzed on his Facebook page.

He urged anyone with the information to share it with Deputy Inspector General of Police Joel Kitili.