The victim was found with gunshot injuries in Markham Avenue at around 21:00 GMT on Monday and died later at Leeds General Infirmary.
West Yorkshire Police said three men aged 17, 19 and 20 had been arrested on suspicion of murder.
Two boys aged 15 and 16 were detained on suspicion of perverting the course of justice.
Detectives found the victim's Vauxhall Astra abandoned in Pasture Road, near to Back Airlie Avenue.
Det Ch Insp Steve Snow said the force believed the man was deliberately targeted and the shooting took place near to where the car was found.

UN chief Ban Ki-moon told reporters that he had requested his resignation.
It comes a day after Amnesty International alleged that a 12-year-old girl was raped by a UN peacekeeper.
The 10,000-strong UN force, deployed last year to help restore order in CAR, has also faced allegations of sexually abusing street children.
In June, Mr Ban set up an independent review panel to examine the UN's handling of allegations of sexual exploitation.
Earlier, the UN had denied allegations it covered up child abuse by French troops also serving in CAR.
BBC Africa Live: News updates
"I cannot put into words how anguished and angered and ashamed I am by recurrent reports over the years of reports of sex abuse and exploitation by UN forces," Mr Ban said when he announced the resignation of the Senegalese army general.
"I will not tolerate any action that causes people to replace trust with fear."
The BBC's UN correspondent Nick Bryant says the UN chief also noted that the problem went beyond one conflict and one person.
He is convening a special session of the UN Security Council on Thursday to discuss what he called "the scourge of sexual exploitation".
Mr Ban will also hold a video-conference call bringing together the force commanders of all the peacekeeping operations around the world to underscore their responsibility to uphold the values of the UN, our correspondent says.
The UN mission in CAR is known as Minusca, from its French acronym, and has been headed by Gen Gaye since it took over from a smaller African Union force in September 2014.
Unprecedented violence escalated in March 2013 when mainly Muslim rebels seized power and the country descended into ethnic and religious violence, with tens of thousands of people fleeing their homes.
This week, Amnesty International also accused UN soldiers of killing a 16-year-old boy and his father during an operation in the capital, Bangui.

They were discovered after the Stena Line ferry from Cherbourg to Rosslare docked on Thursday afternoon.
The four adults, two teenagers and two children are all safe and well.
It is understood they were in what is known as a "curtain container" which had come from the French port.
Three ambulances attended the scene and all eight were medically assessed and brought to hospital for check-ups but none of them needed further treatment.
It is understood there was one family of six and two other adults and most, if not all, said they were Kurdish refugees.
They have been brought to Dublin where their claims for asylum will be processed.
Earlier this year, authorities at Rosslare Europort discovered 14 people hidden in the back of a lorry, which also arrived from France.
All 14 people, including one juvenile, were found inside a refrigerated trailer unit.
They did not need medical intervention either.
Five people have been arrested after a 33-year-old man was shot in the Harehills area of Leeds.
[NEXT_CONCEPT]
The UN envoy to Central African Republic (CAR), Babacar Gaye, has been sacked amid multiple allegations of sexual abuse by peacekeepers.
[NEXT_CONCEPT]
Eight people have been found in a container which arrived on a ferry into Rosslare Europort in County Wexford in the Republic of Ireland.