From 868e729d68b5913716bfe5ddb512f4099851e9a2 Mon Sep 17 00:00:00 2001 From: Apickx Date: Mon, 28 Dec 2015 19:18:30 -0500 Subject: Initial commit --- gamemode/cl_hud/draw_blockhud.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gamemode/cl_hud/draw_blockhud.lua (limited to 'gamemode/cl_hud/draw_blockhud.lua') diff --git a/gamemode/cl_hud/draw_blockhud.lua b/gamemode/cl_hud/draw_blockhud.lua new file mode 100644 index 0000000..9aa4994 --- /dev/null +++ b/gamemode/cl_hud/draw_blockhud.lua @@ -0,0 +1,9 @@ +local Blocks = {} + +function GM:AddBlockCHud(Str) + if (!table.HasValue(Blocks,Str)) then table.insert(Blocks,Str) end +end + +hook.Add( "HUDShouldDraw", "ShouldDraw", function( name ) + if (table.HasValue(Blocks,name)) then return false end +end) \ No newline at end of file -- cgit v1.2.3-70-g09d2