Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("sh_fhud_config.lua")
- include("faded_disable.lua")
- -- DON'T TOUCH THIS PLS --
- -- IF U WANT CHANGE SOMETHING --
- -- GO TO sh_fhud_config.lua --
- -- FONTS --
- if CLIENT then
- surface.CreateFont ("Bar", {
- font = "Arial",
- size = 25,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- } )
- surface.CreateFont ("Faded", {
- font = "Roboto",
- size = 15,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- } )
- surface.CreateFont ("Level", {
- font = "Roboto",
- size = 25,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- } )
- surface.CreateFont ("Nick", {
- font = "Roboto",
- size = 25,
- weight = 1500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- } )
- surface.CreateFont ("Cash", {
- font = "Roboto",
- size = 20,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- } )
- -- PLAYER AVATAR FUNCTION --
- --function ModelView()
- --
- --local iconmodel = vgui.Create("DModelPanel")
- -- iconmodel:SetModel( LocalPlayer():GetModel())
- -- function iconmodel:LayoutEntity( Entity ) return end
- --iconmodel:SetPos(33, ScrH() - 160)
- --iconmodel:SetAnimated(true)
- --iconmodel:SetSize(95,95)
- --iconmodel:SetCamPos( Vector( 14, -2, 65))
- --iconmodel:SetLookAt( Vector( 0, 0, 66.5 ) )
- --
- --timer.Create( "UpdatePlayerModel", 0.5, 0, function()
- --if LocalPlayer():GetModel() != PlayerModel.Entity:GetModel() then
- --iconmodel:Remove()
- --iconmodel = vgui.Create("DModelPanel")
- --iconmodel:SetModel( LocalPlayer():GetModel())
- --function iconmodel:LayoutEntity( Entity ) return end
- --iconmodel:SetPos(33, ScrH() - 160)
- --iconmodel:SetAnimated(true)
- --iconmodel:SetSize(95,95)
- --iconmodel:SetCamPos( Vector( 14, -2, 65))
- --iconmodel:SetLookAt( Vector( 0, 0, 66.5 ) )
- --end
- --end)
- --
- --end
- --hook.Add("InitPostEntity", "DrawPlayerModel", ModelView)
- local function DrawPlayerModel()
- PlayerModel = vgui.Create("DModelPanel")
- function PlayerModel:LayoutEntity( Entity ) return end
- PlayerModel:SetModel( LocalPlayer():GetModel() )
- PlayerModel:SetPos(33, ScrH() - 160)
- PlayerModel:SetSize(95,95)
- PlayerModel:SetCamPos( Vector( 14, -2, 65))
- PlayerModel:SetLookAt( Vector( 0, 0, 66.5 ) )
- timer.Create( "UpdatePlayerModel", 0.5, 0, function()
- if LocalPlayer():GetModel() != PlayerModel.Entity:GetModel() then
- PlayerModel:Remove()
- PlayerModel = vgui.Create("DModelPanel")
- function PlayerModel:LayoutEntity( Entity ) return end
- PlayerModel:SetModel( LocalPlayer():GetModel())
- PlayerModel:SetPos(33, ScrH() - 160)
- PlayerModel:SetSize(95,95)
- PlayerModel:SetCamPos( Vector( 14, -2, 65))
- PlayerModel:SetLookAt( Vector( 0, 0, 66.5 ) )
- end
- end)
- end
- hook.Add("InitPostEntity", "DrawPlayerModel", DrawPlayerModel)
- DrawPlayerModel()
- -- OUTLINEBOX --
- hook.Add("HUDPaint", "Boxes", function()
- function draw.OutlinedBox( x, y, w, h, thickness, clr )
- surface.SetDrawColor( clr )
- for i=0, thickness - 1 do
- surface.DrawOutlinedRect( x + i, y + i, w - i * 2, h - i * 2 )
- end
- end
- --NICKNAME--
- draw.SimpleText(LocalPlayer():Nick() , "Nick", 80 + 115, ScrH() - 138,Color(255,255,255, 255),255, 1)
- draw.RoundedBox(0,130,833,297,50,Color(0,0,0, 160))
- RYSOWANIE KWADRATOW ITP ITD JEBAC ZYDOW
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement