As MildMartin says the green cap is going to be a low voltage one.
You have to use a 400 volt or 630 volt cap for C24. Also an axial type will fit better.
Look for 0.01uF 400v (or 630v) film cap. (0.01uF, 10nF and 10,000pF are all the same value...)
This is an example you can get them from lots of sources
https://uk.farnell.com/vishay/mkt181...pet/dp/1166851
Is that the resistor from the set?
Alan