Answer
$x=4~or~x=-4$.
Work Step by Step
Using the definition of the absolute value, we have
$$
5-|\frac{1}{2}x|=3\Longrightarrow |\frac{1}{2}x|=5-3=2 \Longrightarrow \frac{1}{2}x=2~or~ \frac{1}{2}x=-2
.$$
Thus, we have the two possible solutions:
$x=4~or~x=-4$.