Converting gui.ScreenToVector() to a world vector

I want to know how to convert the ScreenToVector() into a world vector. I’m not sure if this is possible but if it thanks for the help.

Credits to him.

Awesome,thanks for this.

Also:
**[Player.GetCursorAimVector

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Player.GetCursorAimVector)**

I couldn’t use this because I was using a modified view, but I guess this works.

Thanks for the replies i got my thing working.