Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include('shared.lua')
- function npcaddons ( ply )
- local DermaPanel = vgui.Create( "DFrame" )
- DermaPanel:SetTitle( "Les addons c'est ici !" )
- DermaPanel:SetSize( 250, 200 )
- DermaPanel:SetPos( 200 )
- DermaPanel:MakePopup()
- local DermaButton = vgui.Create( "DButton" )
- DermaButton:SetParent ( DFrame )
- DermaButton:SetText( "Addons !" )
- DermaButton:SetPos( 25, 52 )
- DermaButton:SetSize( 125, 30 )
- DermaButton.DoClick = function()
- gui.OpenURL("http://steamcommunity.com/sharedfiles/filedetails/?id=628661338")
- end
- end
- usermessage.Hook("npcaddons", npcaddons)
- hook.Add("PostDrawOpaqueRenderables", "npcaddons", function()
- for _, ent in pairs (ents.FindByClass("npc_basic")) do
- if ent:GetPos():Distance(LocalPlayer():GetPos()) < 1000 then
- local Ang = ent:GetAngles()
- Ang:RotateAroundAxis( Ang:Forward(), 90)
- Ang:RotateAroundAxis( Ang:Right(), -90)
- cam.Start3D2D(ent:GetPos()+ent:GetUp()*79, Ang, 0.20)
- draw.SimpleTextOutlined( 'Les Addons', "HUDNumber5", 0, 0, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP, 1, Color(0, 0, 0, 255))
- cam.End3D2D()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement