There could be several reasons that could be the cause of your problem. But more than likely the compressor is not working or you have lost all of your coolant. If it's a window AC then get a new one, if it's a Central HVAC then find a good HVAC Tech to check your compressor and Coolant Levels.
Your engine is hot.
The AC isn't working.
your car ac will only blow hot air when there coolannt in the car is finished or the car is oveerheated.
If your ac is making noises or is blowing hot air instead of cold
It may have a bad heater core.
Need to add Feron.
There are three main possible causes to explain why a car air conditioner is blowing hot air. These causes are a worn out compressor, refrigerant leak, and an electrical problem.
Low refrigerant charge? Temperature contro set to HOT position?
Clutch possibly not engaged compressor maybe.
Is the AC condenser in your system blowing cold air?
AC System probably needs refrigerant added.
Your outside AC unit may be blowing cold air because it is functioning properly and is working to cool the air before it enters your home. This is a normal operation of an air conditioning system.