Engine noise (knocking) at Renault Espace 1999

Hi, everybody! My Renault Espace clacks like a diesel when the engine is running, but it’s a petrol engine! It’s still running! Now I was already in a workshop and I couldn’t get any further help. Apparently the hydrostoves, camshafts and cylinders were checked and an internal engine cleaning was also done, but without success!!! Man told me that this problem was known to me in these models and couldn’t be done much, except replacement engine!! ask this away if anyone can help me further here or give any tips what else could be the cause!?? Greeting Axel