Thanks to Did, I managed to prove the theorem.
By contradiction, let's say $f$ doesn't converge to $0$. So by Heine's characterization of a limit, there exists $\epsilon_0$ and a sequence $x_n\rightarrow\infty$ such that $|f(x_n)|\geq \epsilon_0$.
By uniform convergence, for $\epsilon_0$ and for every $x_n$ in the sequence there's a corresponding $\delta_n$ such that for every $x\in(x_n-\delta_n,x_n+\delta_n)$ we have $|f(x_n)-f(x)|<\epsilon_0$.
By the Cauchy criterea, the integral $\int_0^\infty f(x)$ exists iff for every $\epsilon>0$ there is an $A>0$ such that for every $a,b>A$ we have $|\int_a^b f(x)|<\epsilon$.
So we will apply this for $\epsilon=2\epsilon_0 \sup\{\delta_n\}$. Let $x_0$ be the corresponding $A$.
Now, we'll take an $x_n$ in our sequence such that $x_n-\delta_n>x_0$.
We get the following:
$\int_{x_n-\delta_n}^{x_n+\delta_n} f(x)dx \geq \int_{x_n-\delta_n}^{x_n+\delta_n}\epsilon_0dx=2\delta_n\epsilon_0\geq\epsilon$
But this contradicts the existence of the integral by the Cauchy criterea.
Does that look alright?