A man was taken to hospital after being hit by a car in a car park