Rendering onto viewmodel

I want to make a radar SWEP and for that I need to render text/other stuff onto the viewmodel.
I tried searching the wiki and looking at other scripts for reference but I couldnt find out what functions I need to use.
I’d greatly appreciate if someone more experienced could point me in the right direction with what functions I need or even give an simple example script on how to accomplish this.


Probably in

GM:PostDrawViewModel or

GM:PreDrawViewModel - you’d have to do some 3D2D stuff using

cam.Start3D2D so the main problem would be getting the exact coordinates of the weapon to draw stuff on

Thanks. Those look like some functions I can work with!