Given the sentence "A man in a gray shirt has his arms raised." is it true that "A man in a gray shirt raises his hand to wave towards a friend."?
Let's think step by step.
it is not possible to tell
Not everyone raising their hand is doing it to wave towards a friend.

.

Thus, the answer is it is not possible to tell