If you're locked out of your car, the first thing you'll want to do is call roadside assistance. Roadside assistance can help open locked doors in a variety of ways, depending on the service you have and the type of lock on your car.
Some services will dispatch a locksmith to your location who can pick the lock on your car door. Other services may have a lockout kit that they can use to open your door without damaging it. And some newer cars come with remote access features that allow roadside assistance to unlock your doors remotely.
Whatever the method, roadside assistance can help get you back into your car if you're locked out. So be sure to give them a call if you find yourself in this situation.