If you park the car while you are not cooling, raise the rpm while car stationary. If cooling happens then things can be. 1. Low gas Pressure. 2. Restricted TXV valve 3. Bad Compresser.
If car only cools while in motion this means that your condenser fails to do heat exchange stuff check for debris and fans and overall condition of condenser