It wasn´t really clear before , now it is.

You should use freeze_mode=1 like i mentioned before .... freze_mode=1 freezes only entity and particle functions and you camrea function should still run.
Not tested your code but it should work.