A man who survived a shooting outside a Melbourne mosque in broad daylight sent a threatening message to his alleged attacker less than 90 minutes later, a court has heard.
Osman Tiba, 36, has pleaded not guilty to four charges including intentionally causing serious injury in circumstances of gross violence.
Crown prosecutor Mark Gibson SC has alleged Tiba drove the BMW from which another man allegedly shot Mohammed Oueida - who had just left noon prayers at a Turkish mosque in Coburg - with a handgun in April 2017.
Mr Gibson on Monday told Justice Stephen Kaye at the Victorian Supreme Court that Mr Oueida ridiculed Tiba about an hour after the alleged incident via social media app Whatsapp.
"Hey dog lucky you c***s are a s*** shot lol," the message read.
A second message, sent about seven minutes later, then read: "Osman Tiba you mutt ... your dogpack will learn who the f*** I am, big mistake, should have done a better job."
Mr Gibson said a bullet was removed from Mr Oueida's body at Royal Melbourne hospital on the night of the shooting.
He said Mr Oueida suffered severe and life-threatening injuries and would have died without treatment.
Mr Gibson also said the manner in which the BMW appeared to "stalk" Mr Oueida and the two people he was with before the shooting meant Tiba was complicit in the offending.
"It's the manoeuvre of the car that leads to the inference that it was a shooting intended by driver," he said on Monday.
Tiba's defence lawyer Philip Dunn QC on Monday accepted his client was driving the BMW.
But Mr Dunn said the former concreter denies being party to any planning or agreement relating to the alleged incident.
"The dispute here is all about what was in his mind - why was he there and what did he believe was going to happen?" he said.
Mr Dunn said Tiba wanted to meet up with Mr Oueida because of "family matters".
He said the two men were released from prison in 2016, knew each other and may have owed each other money.
"There is no doubt Osman Tiba was well alive to a plan to meet up with (Mr Oueida)," Mr Dunn told the court.
"But he denies there was ever intended to be a shooting in a street among numerous witnesses, in a motor car with number plates clearly identifiable."
The trial before Justice Kaye continues on Tuesday, with Tiba's conditional bail extended.