Reading the question two ways gives two answers.
If you mean crashing into another vehicle in the game, most versions simply respawn or repair the cab, sometimes with a fare or time penalty. Check the mission objectives, since some jobs fail outright if the damage is too severe.
If you mean the real-world situation the question describes, the procedure is the standard one: stop, make sure everyone is unharmed, exchange your details with the other driver, document the damage, and notify your insurer. Leaving the scene turns a bad day into a much bigger problem.