A man has escaped an attempted carjacking by up to five men at Laverton North in Melbourne's west on Saturday.

Police say the victim was in a red Ford ute in a car park on Fitzgerald Road, near Leakes Road, about 5.30am.

One of the men jumped on the bonnet of the ute causing the victim to drive a short distance to shake him off.

Victoria Police spokeswoman Amelia Penhall said the victim saw four or five men of "African appearance" approaching and locked his car doors.

"One of the men attempted to open the door but was unable to get inside the car," she said.