A man is in critical condition after being hit by a truck