Getting the world position of skeletal mesh vertex

Do you have this for unreal 5 or can you give me some ideas how to make it work? Placing this in the Library folder fails to compile or something.

I don’t have experience with all this