Yes, the property holds for continuous functions (see also A classical problem about limit of continuous function at infinity and its connection with Baire Category Theorem)
For $\epsilon>0$, let $A_N=\bigcap_{n\geq N}\{x>0: f(nx)\leq \epsilon\}$. Then $A_N$ is closed by the continuity of $f$ and $\lim_{n\rightarrow\infty}f\left(nx\right)=0$ implies that
$$\bigcup_{N\geq 0} A_N=(0,+\infty).$$
Hence, by the Baire Category Theorem, there exists some $N_0$ such that $A_{N_0}$ contains an open interval $(a,b)$ which means that for $n≥N_0$ and $t\in (na,nb)$ we have that $f(t)\leq \epsilon$.
Finally note that for $n>a/(b-a)$, then $nb>(n+1)a$ and therefore
$$t\in\bigcup_{n>\max(a/(b-a),N_0)}(na,nb)=(\delta,+\infty)\implies 0\leq f(t)\leq \epsilon$$
That is $\lim_{x\rightarrow+\infty}f\left(x\right)=0$.
P.S. For a proof without Baire Category Theorem see Gowers's Weblog