Advertisement
rcs2112

Untitled

Oct 14th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. include("shared.lua")
  2. surface.CreateFont( "shekelsfont", {
  3. font = "Helvetica", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
  4. extended = false,
  5. size = 55,
  6. weight = 700,
  7. blursize = 0,
  8. scanlines = 0,
  9. antialias = true,
  10. underline = false,
  11. italic = false,
  12. strikeout = false,
  13. symbol = false,
  14. rotary = false,
  15. shadow = false,
  16. additive = false,
  17. outline = false,
  18. } )
  19. surface.CreateFont( "header", {
  20. font = "Helvetica", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
  21. extended = false,
  22. size = 35,
  23. weight = 700,
  24. blursize = 0,
  25. scanlines = 0,
  26. antialias = true,
  27. underline = false,
  28. italic = false,
  29. strikeout = false,
  30. symbol = false,
  31. rotary = false,
  32. shadow = false,
  33. additive = false,
  34. outline = false,
  35. } )
  36.  
  37.  
  38.  
  39.  
  40. function ENT:Draw()
  41. self:DrawModel()
  42. local ang = self:GetAngles() + Angle(0,180,-270)
  43. local pos = self:GetPos() + (ang:Forward() * -14 ) + (ang:Up() * -5 ) + (ang:Right() * -20)
  44. local shekels = self:GetShekelAmount()
  45.  
  46.  
  47.  
  48. cam.Start3D2D(pos,ang,.075)
  49. draw.RoundedBox(0,-5,-55,310,160,Color(255,0,0))
  50. draw.RoundedBox(0,0,-50,300,150,Color(40,40,40))
  51. draw.RoundedBox(0,0,0,300,100,Color(72,72,72))
  52. draw.SimpleText("Shekel Bank","header",150,-25,Color(120,120,120),1,1)
  53.  
  54. if shekels == 1 then
  55. draw.SimpleText(shekels .. " Shekel","shekelsfont",150,50,Color(255,255,255),1,1)
  56. elseif shekels == 0 then
  57. draw.SimpleText("No Shekels!", "shekelsfont",150,50,Color(255,255,255),1,1)
  58. else
  59. draw.SimpleText(shekels .. " Shekels","shekelsfont",150,50,Color(255,255,255),1,1)
  60. end
  61.  
  62. cam.End3D2D()
  63.  
  64.  
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement