The outdoor unit not running while the indoor fan works may involve a capacitor, contactor, or motor issue
https://winterhavenhvacrepair975.lumenforgex.com/posts/the-fastest-way-to-get-cooling-back-with-same-day-ac-repair-2
The outdoor unit not running while the indoor fan works may involve a capacitor, contactor, or motor issue. Do not open panels yourself; call a qualified technician.