How to find Ai's position on screen

Im making a in game skills like ESP hack
I want to make Wallhack like this

255003-download.jpg

I used project world to screen but it doesn’t worked well

What’s wrong with project world to screen, that’d be the way to do it, generally.