Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.58 KB | None | 0 0
  1. include("sh_fhud_config.lua")
  2. include("faded_disable.lua")
  3. -- DON'T TOUCH THIS PLS --
  4. -- IF U WANT CHANGE SOMETHING --
  5. -- GO TO sh_fhud_config.lua --
  6.  
  7. -- FONTS --
  8. if CLIENT then
  9. surface.CreateFont ("Bar", {
  10.     font = "Arial",
  11.     size = 25,
  12.     weight = 500,
  13.     blursize = 0,
  14.     scanlines = 0,
  15.     antialias = true,
  16. } )
  17.  
  18. surface.CreateFont ("Faded", {
  19.     font = "Roboto",
  20.     size = 15,
  21.     weight = 500,
  22.     blursize = 0,
  23.     scanlines = 0,
  24.     antialias = true,
  25. } )
  26.  
  27. surface.CreateFont ("Level", {
  28.     font = "Roboto",
  29.     size = 25,
  30.     weight = 500,
  31.     blursize = 0,
  32.     scanlines = 0,
  33.     antialias = true,
  34. } )
  35.  
  36. surface.CreateFont ("Nick", {
  37.     font = "Roboto",
  38.     size = 25,
  39.     weight = 1500,
  40.     blursize = 0,
  41.     scanlines = 0,
  42.     antialias = true,
  43. } )
  44.  
  45. surface.CreateFont ("Cash", {
  46.     font = "Roboto",
  47.     size = 20,
  48.     weight = 500,
  49.     blursize = 0,
  50.     scanlines = 0,
  51.     antialias = true,
  52. } )
  53.  
  54. -- PLAYER AVATAR FUNCTION --
  55. --function ModelView()
  56. --
  57.     --local iconmodel = vgui.Create("DModelPanel") 
  58.         --  iconmodel:SetModel( LocalPlayer():GetModel())
  59.           --  function iconmodel:LayoutEntity( Entity ) return end
  60.             --iconmodel:SetPos(33, ScrH() - 160)
  61.             --iconmodel:SetAnimated(true)
  62.             --iconmodel:SetSize(95,95)
  63.             --iconmodel:SetCamPos( Vector( 14, -2, 65))
  64.             --iconmodel:SetLookAt( Vector( 0, 0, 66.5 ) )
  65.             --
  66.             --timer.Create( "UpdatePlayerModel", 0.5, 0, function()
  67.             --if LocalPlayer():GetModel() != PlayerModel.Entity:GetModel() then
  68.                 --iconmodel:Remove()
  69.                 --iconmodel = vgui.Create("DModelPanel")
  70.                 --iconmodel:SetModel( LocalPlayer():GetModel())
  71.                 --function iconmodel:LayoutEntity( Entity ) return end
  72.                 --iconmodel:SetPos(33, ScrH() - 160)
  73.                 --iconmodel:SetAnimated(true)
  74.                 --iconmodel:SetSize(95,95)
  75.                 --iconmodel:SetCamPos( Vector( 14, -2, 65))
  76.                 --iconmodel:SetLookAt( Vector( 0, 0, 66.5 ) )
  77.                 --end
  78.         --end)
  79.   --    
  80. --end
  81.  
  82. --hook.Add("InitPostEntity", "DrawPlayerModel", ModelView)
  83. local function DrawPlayerModel()
  84.        
  85.         PlayerModel = vgui.Create("DModelPanel")
  86.         function PlayerModel:LayoutEntity( Entity ) return end
  87.         PlayerModel:SetModel( LocalPlayer():GetModel() )
  88.         PlayerModel:SetPos(33, ScrH() - 160)
  89.         PlayerModel:SetSize(95,95)
  90.         PlayerModel:SetCamPos( Vector( 14, -2, 65))
  91.         PlayerModel:SetLookAt( Vector( 0, 0, 66.5 ) )
  92.        
  93.         timer.Create( "UpdatePlayerModel", 0.5, 0, function()
  94.                 if LocalPlayer():GetModel() != PlayerModel.Entity:GetModel() then
  95.                         PlayerModel:Remove()
  96.                         PlayerModel = vgui.Create("DModelPanel")
  97.                         function PlayerModel:LayoutEntity( Entity ) return end        
  98.                         PlayerModel:SetModel( LocalPlayer():GetModel())
  99.                         PlayerModel:SetPos(33, ScrH() - 160)
  100.                         PlayerModel:SetSize(95,95)
  101.                         PlayerModel:SetCamPos( Vector( 14, -2, 65))
  102.                         PlayerModel:SetLookAt( Vector( 0, 0, 66.5 ) )
  103.                 end
  104.         end)
  105.        
  106. end
  107. hook.Add("InitPostEntity", "DrawPlayerModel", DrawPlayerModel)
  108. DrawPlayerModel()
  109. -- OUTLINEBOX --
  110.  
  111.  
  112. hook.Add("HUDPaint", "Boxes", function()
  113.  
  114. function draw.OutlinedBox( x, y, w, h, thickness, clr )
  115.     surface.SetDrawColor( clr )
  116.     for i=0, thickness - 1 do
  117.         surface.DrawOutlinedRect( x + i, y + i, w - i * 2, h - i * 2 )
  118.     end
  119. end
  120. --NICKNAME--
  121.     draw.SimpleText(LocalPlayer():Nick() , "Nick", 80 + 115, ScrH() - 138,Color(255,255,255, 255),255, 1)
  122.     draw.RoundedBox(0,130,833,297,50,Color(0,0,0, 160))
  123.    
  124.     RYSOWANIE KWADRATOW ITP ITD JEBAC ZYDOW
  125. end)
  126. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement