Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. SERVERSIDE -- INTERFACE.LUA
  2. ////////////////
  3.  
  4. PLUGIN.Name = "Sci-Fi HUD"; -- What is the plugin name
  5. PLUGIN.Author = "Mr. Giggles"; -- Author of the plugin
  6. PLUGIN.Description = "A HUD for troopers."; -- The description or purpose of the plugin
  7.  
  8. function PowerTrooperHud()
  9. if ply:HasItem("helmet_balaclava") then
  10. umsg.Start( "PowerTrooperInterface", detainee )
  11. umsg.End()
  12. end
  13. end
  14.  
  15. function PLUGIN.Init()
  16.  
  17. end
  18.  
  19. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  20.  
  21. CLIENTSIDE -- CL_INTERFACE.LUA
  22. ////////////////
  23.  
  24. CLPLUGIN.Name = "Trooper HUD"
  25. CLPLUGIN.Author = "Mr. Giggles"
  26.  
  27. local bgTex = surface.GetTextureID("combinemechhud/hud")
  28.  
  29. hook.Add("PowerTrooperInterface","PowerTrooperInterface", function()
  30. surface.SetTexture( bgTex )
  31. surface.SetDrawColor( 255, 255, 255, 255 )
  32. surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() )
  33. end)
  34.  
  35. function CLPLUGIN.Init()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement