Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SERVERSIDE -- INTERFACE.LUA
- ////////////////
- PLUGIN.Name = "Sci-Fi HUD"; -- What is the plugin name
- PLUGIN.Author = "Mr. Giggles"; -- Author of the plugin
- PLUGIN.Description = "A HUD for troopers."; -- The description or purpose of the plugin
- function PowerTrooperHud()
- if ply:HasItem("helmet_balaclava") then
- umsg.Start( "PowerTrooperInterface", detainee )
- umsg.End()
- end
- end
- function PLUGIN.Init()
- end
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CLIENTSIDE -- CL_INTERFACE.LUA
- ////////////////
- CLPLUGIN.Name = "Trooper HUD"
- CLPLUGIN.Author = "Mr. Giggles"
- local bgTex = surface.GetTextureID("combinemechhud/hud")
- hook.Add("PowerTrooperInterface","PowerTrooperInterface", function()
- surface.SetTexture( bgTex )
- surface.SetDrawColor( 255, 255, 255, 255 )
- surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() )
- end)
- function CLPLUGIN.Init()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement