Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.
You have to read all of the function page
And be sure that you can't mix server and client functions in one file