Police say two separate shootings took place in the Flatlands section of Brooklyn early Saturday morning.
The NYPD says a man is in custody in connection with the shooting of a livery cab passenger early Saturday morning.
Police say the man is not cooperating with them and has not yet been charged.
Investigators say a man with a gun walked up to a livery cab after it stopped near Utica Avenue and Avenue M in Flatlands, shortly before 2:30 a.m.
They say when the man tried to reach in and steal something, the driver struggled with him and the gun went off.
A 23-year-old man in the back of the cab was hit.
He was taken to Kings County Hospital in critical condition.
The driver was not hurt.
Meanwhile, police say another shooting took place at a house party on East 54th Street at approximately 12:50 a.m. Saturday morning.
Police say one man was shot in the knee and another man was shot in the stomach and leg while two women were grazed by bullets.
All of the victims were transported to Brookdale Hospital and are in stable condition, according to police.