Im having trouble with this code (below) which runs fine but doesnt draw any text at all. I have gotten the right position by typing getpos in console. Any ideas?
[lua]
function drawtext()
cam.Start3D2D(Vector(1735.858521, -276.665649, 128.031250), Angle(3, 179, 0), 83)
draw.DrawText("This is a test", "Default", 0, 0, Color(255,255,255,255),1)
cam.End3D2D()
end
drawtext()
[/lua]
You need to hook it, not just call it once.
Ahh yeah of corse. Forgot about that. How would I go about doing that? I wanna draw 3D text on the map.
Any ideas?
Use the PostDrawOpaqueRenderables hook.
[URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7e79.html"]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7e79.html[/URL]
Sorry, you need to Log In to post a reply to this thread.