Textures ONLY render in viewport

Pls delete this thread.
Solution has been found