69Angel69 0 Posted September 11, 2015 Share Posted September 11, 2015 Hi, So basically I was looking for a bit of help trying to get a prop created, instead of displaying the item on the ground with 3d coords, I wanted to display the object on the HUD with 2d coords.. help please!. Link to post Share on other sites
69Angel69 0 Posted September 11, 2015 Author Share Posted September 11, 2015 okay, so I am going to try... screen.x = x / z screen.y = y / z Link to post Share on other sites
GeorgeZhang 25 Posted September 12, 2015 Share Posted September 12, 2015 (edited) Actually I have just added something similar to my mod. What I did was creating an object without dynamics and set its coords to the position in front of the camera I created. If you want it to be on the screen, I suggest you attach it to a camera, which you can create/manipulate through natives. There's also a native which is called "world to screen 2d" I think, may help you as well. Edited September 12, 2015 by GeorgeZhang Link to post Share on other sites
whorse 26 Posted September 12, 2015 Share Posted September 12, 2015 float dX; float dY; GRAPHICS::_WORLD3D_TO_SCREEN2D(targCoords.x, targCoords.y, targCoords.z, &dX, &dY); this takes the 3D location of targCoords (whatever that may be) and stores its 2D location on-screen to the dX and dY variables 1 Link to post Share on other sites
TuckerW2001 2 Posted September 12, 2015 Share Posted September 12, 2015 this is quite simple you use the draw_text function and use the coords from the above setup and draw the name or whatever you want at those coords Link to post Share on other sites