A rapper was shot dead as he sat in a car in a “cold-blooded execution” as part of a revenge attack three years after he was cleared of murder, a court has heard.