Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 31st, 2020 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include('shared.lua')
  2.  
  3. surface.CreateFont("TitreAmmo", {
  4.     font = "Arial",
  5.     size = 35,
  6.     weight = 600,
  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.  
  20. surface.CreateFont("TextButtonAmmo1", {
  21.     font = "Trebuchet18",
  22.     size = 20,
  23.     weight = 600,
  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. surface.CreateFont("TextButtonAmmo2", {
  38.     font = "Trebuchet18",
  39.     size = 20,
  40.     weight = 600,
  41.     blursize = 0,
  42.     scanlines = 0,
  43.     antialias = true,
  44.     underline = false,
  45.     italic = false,
  46.     strikeout = false,
  47.     symbol = false,
  48.     rotary = false,
  49.     shadow = false,
  50.     additive = false,
  51.     outline = false,
  52. });
  53.  
  54. surface.CreateFont("TextAmmoAuteur", {
  55.     font = "Trebuchet18",
  56.     size = 10,
  57.     weight = 600,
  58.     blursize = 0,
  59.     scanlines = 0,
  60.     antialias = true,
  61.     underline = false,
  62.     italic = false,
  63.     strikeout = false,
  64.     symbol = false,
  65.     rotary = false,
  66.     shadow = false,
  67.     additive = false,
  68.     outline = false,
  69. });
  70.  
  71. surface.CreateFont("P1", {
  72.     font = "Impact",
  73.     size = 50,
  74.     weight = 600,
  75.     blursize = 0,
  76.     scanlines = 0,
  77.     antialias = true,
  78.     underline = false,
  79.     italic = false,
  80.     strikeout = false,
  81.     symbol = false,
  82.     rotary = false,
  83.     shadow = false,
  84.     additive = false,
  85.     outline = false,
  86. });
  87.  
  88. surface.CreateFont("P2", {
  89.     font = "Arial",
  90.     size = 25,
  91.     weight = 600,
  92.     blursize = 0,
  93.     scanlines = 0,
  94.     antialias = true,
  95.     underline = false,
  96.     italic = false,
  97.     strikeout = false,
  98.     symbol = false,
  99.     rotary = false,
  100.     shadow = false,
  101.     additive = false,
  102.     outline = false,
  103. });
  104.  
  105. -- Les 2 codes du dessus vont créer des font
  106.  
  107. function ENT:Draw()
  108.     self:DrawModel();
  109.  
  110.     local pos = self:GetPos()+ Vector(0, 0, 72)
  111.     local ang = self:GetAngles()
  112.  
  113.  
  114.     ang:RotateAroundAxis(ang:Up(), 90);
  115.     ang:RotateAroundAxis(ang:Forward(), 90);
  116.     if LocalPlayer():GetPos():Distance(self:GetPos()) < 400 then
  117.         cam.Start3D2D(pos + ang:Up(), Angle(0, LocalPlayer():EyeAngles().y-90, 90), 0.25)
  118.                 draw.SimpleTextOutlined("Jobs", "TitreAmmo", 0, -48, Color(255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_LEFT, 1, Color(25, 25, 25, 100));      
  119.         cam.End3D2D()
  120.     end;
  121. end;
  122.  
  123. --La fonctions au dessus va placer un texte au dessus du npc
  124.  
  125. function NPCAmmo(ply)
  126.  
  127.     local StartMenu = vgui.Create("DFrame")
  128.     StartMenu:SetSize(800, 880)
  129.     StartMenu:Center()
  130.     StartMenu:SetTitle("")
  131.     StartMenu:SetSizable(false)
  132.     StartMenu:SetDeleteOnClose(false)
  133.     StartMenu:ShowCloseButton(false)
  134.     StartMenu.Paint = function( self, w, h )
  135.         draw.RoundedBoxEx( 4, 0, 0, w, h, Color( 20, 20, 20, 255 ) )
  136.     StartMenu:MakePopup()
  137. end
  138.  
  139.     local ButtonJobs1 = vgui.Create( "DButton", StartMenu )
  140.     ButtonJobs1:SetPos( 30, 100 )
  141.     ButtonJobs1:SetText( "" )
  142.     ButtonJobs1:SetTextColor( Color(255,255,255) )
  143.     ButtonJobs1:SetSize( 740, 100 ) -- 740 100
  144.     ButtonJobs1:SetFont("P2")
  145.  
  146.     function ButtonJobs1:Paint(w, h)
  147.         draw.RoundedBox(0,0,0,w,h,Color(50,50,50,150))
  148.         draw.SimpleText( "Job : Citoyen", "P2", 72, 15, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  149.         draw.SimpleText( "Job : Citoyen", "P2", 500, 25, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  150.         draw.SimpleText( "Job : Citoyen", "P2", 500, 25, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  151.     end
  152.     ButtonJobs1.DoClick = function()
  153.         StartMenu:Close()
  154.     end
  155.  
  156.     local icon = vgui.Create( "DModelPanel", Panel )
  157.     icon:SetSize(2000,2000)
  158.     icon:SetModel( "models/player/alyx.mdl" ) -- you can only change colors on playermodels
  159.     icon:SetPos( 300, 10 )
  160.     function icon:LayoutEntity( Entity ) return end -- disables default rotation
  161.     function icon.Entity:GetPlayerColor() return Vector (4, 0, 0) end --we need to set it to a Vector not a Color, so the values are normal RGB values divided by 255.
  162.        
  163.    
  164.     --local icon = vgui.Create( "DModelPanel", Panel )
  165.     --icon:SetSize(100,100)
  166.     --icon:SetModel( "models/kerry/imprisoned/male_09.mdl" )
  167.     --function icon:LayoutEntity( Entity ) return end
  168.     --function icon.Entity:GetPlayerColor() return Vector (4, 0, 0) end
  169.    
  170.     local ButtonQuitte = vgui.Create( "DButton", StartMenu )
  171.     ButtonQuitte:SetPos( 755, 6 )
  172.     ButtonQuitte:SetText( "" )
  173.     ButtonQuitte:SetSize( 40, 40 )
  174.     ButtonQuitte:SetFont("P1")
  175.  
  176.     function ButtonQuitte:Paint(w, h)
  177.         draw.RoundedBox(0,0,0,w,h,Color(255,20,20,255))
  178.         draw.SimpleText( "X", "P1", 20, 20, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  179.     end
  180.     ButtonQuitte.DoClick = function()
  181.     StartMenu:Close()
  182. end    
  183. end
  184. usermessage.Hook("NPCAmmo", NPCAmmo)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top