Consider an arbitrary (topological) $k$-vector bundle $\pi: E \to X$. For each $U \subset X$, we'll assume that $\mathcal{F}_X(U)$ be the set of continuous maps $U \to k$. It isn't hard to see that $\mathcal{F}_X(U)$ is a sheaf of rings, for we can take sums, products, and restrictions of functions in the usual way.
We'll assume that $\mathcal{O}_X$ is a subsheaf of $\mathcal{F}_X$; otherwise it is not always possible to construct a locally free sheaf correponding to the vector bundle $\pi$.
Now if we let $\mathcal{E}(U)$ be the set of continuous sections $f: U \to \pi^{-1}(U)$ (where "section" means that $f(u)$ lies "above" $u$ in the sense that $\pi f(u) = u$) then I'll show $\mathcal E$ is an $\mathcal{O}_X$-module that's locally free of rank $\dim E$.
To see that it's an $\mathcal{O}_X$-module note that for $\psi \in \mathcal E(U)$, we have $$\psi(u) = (u,v) \in \{u\} \times k^n.$$ For $f \in \mathcal{O}_X(U)$, since $f(u) \in k$ we can use scalar multiplication in $k^n$ to define $$f\psi(u) = (u, f(u)\cdot v) \in \{u\} \times k^n.$$ Since $E$ is locally a cartesian product, $\psi$ is locally a cartesian product of continuous coordinate functions. Since multiplication of continuous functions is continuous, it follows that $f \psi \in \mathcal E(U)$, making $\mathcal E$ an $\mathcal O_X$-module.
Similarly, to check that the sheaf we have constructed is locally free, we'll use the fact that $E$ is locally homeomorphic to a product space. A continuous section $U \to U \times k^n$ is the same thing as $n$ continuous maps $U \to k$, hence $\mathcal{E}|_U \simeq \mathcal{O}_U^n$ as an $\mathcal{O}_U$-module.
The (possibly) surprising fact is that the converse is true: a locally-free $\mathcal{O}_X$-module of rank $r$ corresponds uniquely to a vector bundle $E$. To reiterate, all of this only makes sense if we can interpret $\mathcal{O}_X$ as a sheaf of continuous $k$-valued functions.