At least five people have been killed after shooting broke out at a dance music festival in Mexico as a British DJ pleaded with people "Stay in your f***ing hotels".
Scottish DJ Jackmaster issued a warning to clubbers after a gunman opened fire on the closing night of the BPM music festival in Mexico.
A statement from festival organisers said a lone shooter opened fire at the Blue Parrot nightclub in Playa Del Carmen.
A DJ performing at the time toldthe shooter opened fire next to the stage at the venue.
Four people - including three BPM security staff - are believed to have been pronounced dead at the scene and a fifth woman died later in hospital after being seriously injured in a stampede as revellers fled.
A statement by Mexican police confirmed two of the deceased was a Canadian-born security guards and a Mexican man, an Italian man and a Colombian woman had also died.
At least another 15 people were injured.
Eye-witnesses William Rogers toldhow he was outside The Blue Parrot when shooting broke out and ran with other revellers into nearby Mandala nightclub to take cover.
He said: "I was in the 12 North street of Playa Del Carmen almost in front of Blue Parrot. There where hundred of peoples in the street, some in the line and others outside dancing and partying because is a red zone where you can drink in the street.
"I was 50 meters of the place when we heard several shots. I entered to a nightclub called Mandala to cover from shots. Once there they closed doors quick and told us to cover.
"The shooting lasted for a few seconds and we were in Mandala for around 30 to 45 minutes until the Mexican police, military and ambulances had arrived and security allowed us to leave."
Local media reports suggest the shooting may be connected to Mexico's ongoing wars between drug cartels.
Chilling video footage from the scene shows revellers being treated by paramedics and fellow party-goers outside the venue as blood covers parts of the pavement.
A Canadian national is reported to be among the dead. It is not yet known if any Brits were involved.
American-born William, who lives in Mexico City, said tourists were among those killed and injured.
He said: "The festival is probably 80 per cent tourists and you could see it was not only cartel people who had been injured. It's so sad and the worst example of the reality in Mexico."
DJs Sidney Charles and Sante were performing when the shooting broke out at the Blue Parrot.
Sidney Charles tolda gunman opened fire next to the stage of the venue.
He said: "The shooter was left, next to the stage and just started shooting".
Fellow DJ and eye-witness James Chapman told DJ Mag: “I heard upwards of 10 or 20 shots that sounded like fire crackers.
"Everyone stopped to see what was going on and I just saw people looking in one direction on the dance floor. Then there were screams and everyone just ran.
“I was in the booth and everyone there ran out the back. We ended up in a hotel lobby. There we started walking and someone screamed so we ran again."
DJ Jackmaster - real name Jack Revill - had previously been Tweeting about how well the festival had been going, until shortly after 8am (UK time) this morning.
His first message read: "Someone has come into the club in Playa Del Carmen and opened fire. 4-5 dead and many wounded. Stay in ur f**kin hotel if you're here at BPM."
Around 15 minutes later he added: "Apparently now more shots fired at another club in the area."
The BPM festival features several venues hosting parties and events on the closing night of the festival, which featured over 150 of the world's top DJs, producers and acts.
Festival organisers said all venues have been closed following the shootings.
A statement from BPM said: "It is with great sadness to share that police have confirmed reports of a lone shooter outside the Blue Parrot nightclub in Playa Del Carmen earlier today, which resulted in four fatalities and twelve injured.
"The violence began on 12th street in front of the club and three members of the BPM security team were among those whose lives were lost while trying to protect patrons inside the venue.
The BPM Festival has been working closely with the local authorities (Seguridad Publica / Policia Turistica) throughout the festival to ensure public safety and security for all visitors.
"We are overcome with grief over this senseless act of violence and we are cooperating fully with local law enforcement and government officials as they continue their investigation.
Our thoughts and prayers are with all the victims and their families and all those affected by these tragic events.
BPM has grown to become one of the world's biggest dance and electronic music events and Glasgow DJ Jackmaster was among the headliners.
Eye-witness Jake Lubelski wrote on Facebook that there was a stampede after a gunman opened fire around 20 yards away from him.
He said: "There was a shooting down here in Playa Del Carmen on the last night of BPM.
"I was standing outside of a club on an insanely crowded street when it happened; I was maybe 20 feet away from the shooter. as soon as I heard gun shots, everyone started bolting and we nearly got trampled by the frantic herds of people.
"As soon as I turned around the corner and got a look at the scene, I saw a man lying on the floor in his own blood. It could have been me".
DJ Technasia, who had been due to take to the stage, wrote on Facebook: "In regards to the tragic event that occured a few hours ago at the BPM Festival in Playa del Carmen, I would like to let everyone know that I am safe and unharmed.
"I was not yet on the premises or in the DJ booth when the shooting happened. My prayers goes to the victims and their families."