If you have gap insurance and your car is totaled
https://charliegrql408.timeforchangecounselling.com/legal-consequences-for-driving-without-insurance-after-an-accident
If you have gap insurance and your car is totaled, contact the gap provider to cover the loan balance that exceeds the actual cash value.