For 24 inch framing spacing, you can use 5/8 or high strength 1/2 on the ceiling. Either will work on the walls. For fire resistance, type X is what you want, it is available in 1/2 or 5/8. The difference in type X is a higher moisture content and embedded fibers. The fibers make it resistant to a fire hose stream. When it is tested for fire resistance, it is burned in a test fire and then hit with a hose stream. If you break a scrap and look closely, there are small fibers in the broken ends. That is how I made sure they used the right stuff when I used to do inspections and the printing on the sheets was not visible.