Greetings,
When your car is involved in an accident but another driver is at fault, the other driver's liability car insurance is responsible to pay for your damages.
The cost of renting a car while your vehicle is being repaired are also covered by the guilty party's car insurance, but only if you can prove that you are actually using the replacement car (if you need a car for your work or to commute, for example). If you are not sure whether your situation warrants a need for a replacement car, contact the insurance company in question to find out.
In any case, you have to front the cost of the rental vehicle and then claim reimbursement in arrears.
If you are the guilty party in an accident, you may be able to get the cost of a replacement car covered by your collision car insurance or comprehensive car insurance policy. Some insurance companies include this coverage or offer it as an optional rider.
Best regards from Moneyguru
More on this topic:
Car insurance comparison
9 Ways to save on car insurance