• Lua crosshair
    3 replies, posted
  • Avatar of zyke34
  • Hi guys, I was wondering how would you draw an image to the center of your screen? Sorry, noob at lua.
  • Avatar of brandonj4
  • [QUOTE=zyke34;36243809]Hi guys, I was wondering how would you draw an image to the center of your screen? Sorry, noob at lua.[/QUOTE] What do you mean by image? Do you mean lines or an actual picture of a crosshair? Are you using custom materials?
  • Avatar of shadowndacorner
  • If you want to do something like the standard crosshair (four simple dots), use surface.drawline, like Noi said. If you have a custom image for it, use surface.DrawTexturedRect. Both in a hudpaint hook.