You are permitted to leave the airport if you have a transit visa. If your transit time is more than 24 hours, you must either arrange a confirmed hotel reservation or provide the Emirates ID card and UAE Residence visa copy of the person you will be staying with in the UAE.
UAE visa information
Check whether you need to apply for a UAE visa
Frequently asked questions