Ask them. That is the honest answer, and it is funnier than it sounds because the game's pedestrian interactions are exactly that limited.
You cannot force a random character into the vehicle. What you can do is hail, carjack, or trigger a scripted passenger as part of a mission, and each of those behaves differently.
If you are trying to complete an objective that requires a passenger, check whether the mission itself provides one. In most cases it does, and the problem is that you are looking for a mechanic that was never in the game.