• drawing text on entity?
    2 replies, posted
I've been trying to grab each entity on the map (in this case weapons), but my problem is grabbing their X and Y coordinates to print the text out 2D: [QUOTE] for _, v in pairs( getAllEnt() ) do if v:IsWeapon() and v:IsValid() then createText( "wep", "Default", 115, 115, Color ( 255, 255, 255, 255 ), 0, 0, 1, Color( 0, 0, 0, 255 ) ) end end[/QUOTE] don't worry about createText, it's just a function that uses surface.DrawText() (115, 155 are the x and y coordinates in this case) I've done this before similar with players and text but that's because players have bones that you can use to pinpoint their X And Y coordinates [highlight](User was banned for this post ("Wrong forum" - Grea$eMonkey))[/highlight]
Wrong area, goes in the questions subforum at the top. Entity:GetPos():ToScreen()
Oh, sorry! anyway, it worked thanks!
Sorry, you need to Log In to post a reply to this thread.