I forgot to write here, the class must be created and don’t delete, otherwise there will be periodic crashes, I spawn this class in GameMode on the Begin play, and the scheme above is not relevant, everything is much simpler, you just need to spawn a class and call the init function
tested on 5.1.1 (works perfect!)
tested on 5.0, 5.2 (not working!)