Taunt Menu for Prop Hunt doesn't play sounds

Hello!

First i’m sry for my bad english :slight_smile:

I got a Problem with my Taunt Menu, that it wont play a sound, when i press on a button in the menu. In the console it gives me the Error: “Failed to load sound “taunts\props\9.wav”, file probably missing from disk/repository”
The Prop Hunt script has a random function to play a taunt on the “F2” Button and this works pretty well, but the taunt menu wont work. I already tried to change the taunt paths, but this wont work too. (Changed it to things like “sound/taunts\props\9.wav”)

The “Taunts” are in the “/gamemode/KoB_PropHunt_Reworked_Beta/content/sound/taunts/props/” folder.

The Taunt Menu is under “/lua/autorun/”

Anyone knows what the problem could be ? Because the Taunts get played if the players use “F2”, but at some reason it wont work in the menu. Btw. the menu is showing up with text and everything, it just wont play any sound. It also close the window after i push a button, what it should do, just it doesnt play the sound.

I’m not sure if i forgot something to add in the code, or i just did something wrong with the sound path.

Thankfull for all answers!

Here is the Code. [The middle part can be ignored, is just for the pages and “location” of the text and buttons. Interresting is the Start of the script and the end] [Have removed the most of the middle part here]



*/

if ( SERVER )	then 
	local TAUNT_DELAY = 3		//Taunt Delay Variable
	local tauntLength={			//Taunt Length Table
		["content/sound/taunts/props/1.wav"] = 1, 					//Boom Headshot! [As example with the thing i changed the Path]
		["sound/taunts/props/2.wav"] = 0,						//Doh! [As example with the thing i changed the Path]
		["taunts/props/3.wav"] = 3,						//Go away, or I shall taunt you.
		["taunts/props/4.wav"] = 4,						//WoW
		["taunts/props/5.wav"] = 1,						//Negative
		["taunts/props/6.wav"] = 7,						//Over 9000	
		["taunts/props/7.wav"] = 4,						//LEEERROOYY!!
		["taunts/props/8.wav"] = 0,						//Please come again
		["taunts/props/9.wav"] = 2,						//This is Sparta!
		["taunts/props/10.wav"] = 2,					//What is wrong with you?!
		["taunts/props/11.wav"] = 0,					//Woohoo
		["taunts/props/12.wav"] = 4,					//What do you like to play?
		["taunts/props/13.mp3"] = 3,					//I am Cornholio
		["taunts/props/14.wav"] = 3,					//Utorunaga Weeu!
		["taunts/props/15.wav"] = 3, 					//Snooping as Usual?
		["taunts/props/16.wav"] = 20,					//ATATATATATATA!!!
		["taunts/props/17.mp3"] = 10,					//HAHAHA
		["taunts/props/18.wav"] = 1,					//Get on the Ball
		["taunts/props/19.wav"] = 1,					//Horn
		["taunts/props/20.wav"] = 1,					//Are you on the Ball?
		["taunts/props/21.wav"] = 1,					//Only 19.99$
		["taunts/props/22.wav"] = 3,					//Pour or Measure
		["taunts/props/23.wav"] = 1,					//I guarantee it!
		["taunts/props/24.wav"] = 1,					//New Oxyclean
		["taunts/props/25.wav"] = 3,					//So Easy
		["taunts/props/26.wav"] = 1,					//So get on the Ball
		["taunts/props/27.mp3"] = 2,					//Oxyclean Detergent
		["taunts/props/28.wav"] = 2,					//Got Easier
		["taunts/props/29.wav"] = 6, 					//Running in the 90's
		["taunts/props/30.wav"] = 2,					//Forces Eliminated
		["taunts/props/31.mp3"] = 11,					//Bad Boys
		["taunts/props/32.mp3"] = 10,					//Blood Rave
		["taunts/props/33.mp3"] = 7,					//Follow Meee!!
		["taunts/props/34.mp3"] = 3,					//I am the one and only!
		["taunts/props/35.mp3"] = 1,					//Hodor
		["taunts/ill_be_back.wav"] = 1,					//I'll be back
		["taunts/oh_yea_he_will_pay.wav"] = 4,			//Oh yea' he will pay
		["taunts/ok_i_will_tell_you.wav"] = 5,			//Ok I will tell you
		["taunts/threat_neutralized.wav"] = 1,			//Threat Neutralized
		["taunts/you_dont_know_the_power.wav"] = 4,		//You Don't know the power of the dark side
		["taunts/you_underestimate_the_power.wav"] = 3,	//You underestimate the power of the dark side
		/*
		To add more lines just do the following:
		["..taunt_source_folder.mp3"] = #, (replace # with a number which will be the delay).
		Add same amount of lines according the amount of taunts you add.
		*/ 
	}

	util.AddNetworkString("send_taunt")
	net.Receive( "send_taunt", function( _, ply )
		local taunt = net.ReadString()
		local curTime = CurTime()
		if curTime - ( ply.LastTaunt or 0 ) >= TAUNT_DELAY then
			ply.LastTaunt = CurTime() + tauntLength[taunt]
			ply:EmitSound(taunt,150)
		end
	end )
end

if ( CLIENT ) then
	timer.Create("TauntMenuUse",120,0, function()
											chat.AddText(Color(214,0,0),"[Taunt Menu]", Color(0,225,126)," To open the menu press C or F4")//Chat message for player.
										end)
													//To change button color look for: surface.SetDrawColor(19, 105, 153) in the code
	local MenuColor			=	Color( 10, 39, 55 )	//Color(R, G, B, A) = Set Menu background color.
	local ButtonTextColor	=	Color(255,255,255)	//Color(R, G, B, A)	= Set button text color.
	local pl				=	LocalPlayer();		//Assign pl as LocalPlayer().
	
	pl.MenuOpen				=	0;					//Set for player MenuOpen to 0 by default.
	
	pl.MenuPage2			=	0;					//Set for player MenuPage3 to 0 by default
	pl.MenuPage3			=	0;					//Set for player MenuPage3 to 0 by default
	pl.MenuPage4			=	0;					//Set for player MenuPage4 to 0 by default
	pl.MenuPage5			=	0;					//Set for player MenuPage5 to 0 by default
	
	pl.hMenuPage2			=	0;					//Set for player hMenuPage2 to 0 by default					
	pl.hMenuPage3			=	0;					//Set for player hMenuPage3 to 0 by default	
	pl.hMenuPage4			=	0;					//Set for player hMenuPage4 to 0 by default	
	pl.hMenuPage5			=	0;					//Set for player hMenuPage5 to 0 by default	
	
	local propButton={								//What text each button has on Prop Team.
		//Page 1
		p1_B1	=	"Doh!",
		p1_B2	=	"Go away, or I shall taunt you.",
		p1_B3	=	"WoW",
		p1_B4	=	"Over 9000",
		p1_B5	=	"LEEERROOYY!!",
		p1_B6	=	"Please come again",
		p1_B7	=	"This is Sparta!",
		p1_B8	=	"What is wrong with you!?",
		p1_B9	=	"Woohoo",
		p1_B10	=	"What do you like to play?",
		p1_B11	=	"I am Cornholio!",
		p1_B12	=	"Utorunaga Weeu!",
		p1_B13	=	"Snooping as Usual?",
		p1_B14	=	"ATATATATATATA!!!",
		//Page 2
		p2_B1	=	"HAHAHA",
		p2_B2	=	"Get on the Ball",
		p2_B3	=	"Horn",
		p2_B4	=	"Are you on the Ball?",
		p2_B5	=	"Only 19.99$",
		p2_B6	=	"Pour or Measure",
		p2_B7	=	"I guarantee it!",
		p2_B8	=	"New Oxyclean",
		p2_B9	=	"So Easy",
		p2_B10	=	"So get on the Ball",
		p2_B11	=	"Oxyclean Detergent",
		p2_B12	=	"Got Easier",
		p2_B13	=	"Running in the 90's",
		p2_B14	=	"Blood Rave",
		//Page 3
		p3_B1	=	"Follow Meee!!",
		p3_B2	=	"I am the one and only!",
		p3_B3	=	"AoE 2 Healer",
		p3_B4	=	"I will be back",
		p3_B5	=	"Okay I will tell you",
		p3_B6	=	"You don't know the power",
		p3_B7	=	"You underestimate the power",
		p3_B8	=	"",
		p3_B9	=	"",
		p3_B10	=	"",
		p3_B11	=	"",
		p3_B12	=	"",
		p3_B13	=	"",
		p3_B14	=	"",
	}

	local propWString={								//Prop net.WriteString(text) that is sent to server side.
		p1_B1	=	"taunts/props/2.wav",
		p1_B2	=	"taunts/props/3.wav",
		p1_B3	=	"taunts/props/4.wav",
		p1_B4	=	"taunts/props/6.wav",
		p1_B5	=	"taunts/props/7.wav",
		p1_B6	=	"taunts/props/8.wav",
		p1_B7	=	"taunts/props/9.wav",
		p1_B8	=	"taunts/props/10.wav",
		p1_B9	=	"taunts/props/11.wav",
		p1_B10	=	"taunts/props/12.wav",
		p1_B11	=	"taunts/props/13.mp3",
		p1_B12	=	"taunts/props/14.wav",
		p1_B13	=	"taunts/props/15.wav",
		p1_B14	=	"taunts/props/16.wav",
		//Page 2
		p2_B1	=	"taunts/props/17.mp3",
		p2_B2	=	"taunts/props/18.wav",
		p2_B3	=	"taunts/props/19.wav",
		p2_B4	=	"taunts/props/20.wav",
		p2_B5	=	"taunts/props/21.wav",
		p2_B6	=	"taunts/props/22.wav",
		p2_B7	=	"taunts/props/23.wav",
		p2_B8	=	"taunts/props/24.wav",
		p2_B9	=	"taunts/props/25.wav",
		p2_B10	=	"taunts/props/26.wav",
		p2_B11	=	"taunts/props/27.wav",
		p2_B12	=	"taunts/props/28.wav",
		p2_B13	=	"taunts/props/29.wav",
		p2_B14	=	"taunts/props/32.mp3",
		//Page 3
		p3_B1	=	"taunts/props/33.mp3",
		p3_B2	=	"taunts/props/34.mp3",
		p3_B3	=	"taunts/props/35.mp3",
		p3_B4	=	"taunts/ill_be_back.wav",
		p3_B5	=	"taunts/ok_i_will_tell_you.wav",
		p3_B6	=	"taunts/you_dont_know_the_power.wav",
		p3_B7	=	"taunts/you_underestimate_the_power.wav",
		p3_B8	=	"",
		p3_B9	=	"",
		p3_B10	=	"",
		p3_B11	=	"",
		p3_B12	=	"", 
		p3_B13	=	"",
		p3_B14	=	"",
	}
	
	local hunterButton={							//What text each button has on Hunter Team.
		//Page 1
		h1_B1	=	"Boom Headshot!",
		h1_B2	=	"Doh!",
		h1_B3	=	"WoW",
		h1_B4	=	"Negative",
		h1_B5	=	"Please come again",
		h1_B6	=	"This is Sparta!",
		h1_B7	=	"What is wrong with you!?",
		h1_B8	=	"Woohoo",
		h1_B9	=	"What do you like to play?",
		h1_B10	=	"Utorunaga Weeu!",
		h1_B11	=	"ATATATATATATA!!!",
		h1_B12	=	"HAHAHA",
		h1_B13	=	"Running in the 90's",
		h1_B14	=	"Force Eliminated",
		//Page 2
		h2_B1	=	"Bad Boys",
		h2_B2	=	"Follow Meee!!",
		h2_B3	=	"I will be back",
		h2_B4	=	"Oh yea he will pay!",
		h2_B5	=	"Threat Neutralized",
		h2_B6	=	"You don't know the power",
		h2_B7	=	"You underestimate the power",
		h2_B8	=	"",
		h2_B9	=	"",
		h2_B10	=	"",
		h2_B11	=	"",
		h2_B12	=	"",
		h2_B13	=	"",
		h2_B14	=	"",
}

	local hunterWString={							//Hunter net.WriteString(text) that is sent to server side.
		//Page 1
		h1_B1	=	"taunts/props/1.wav",
		h1_B2	=	"taunts/props/2.wav",
		h1_B3	=	"taunts/props/4.wav",
		h1_B4	=	"taunts/props/5.wav",
		h1_B5	=	"taunts/props/8.wav",
		h1_B6	=	"taunts/props/9.wav",
		h1_B7	=	"taunts/props/10.wav",
		h1_B8	=	"taunts/props/11.wav",
		h1_B9	=	"taunts/props/12.wav",
		h1_B10	=	"taunts/props/14.wav",
		h1_B11	=	"taunts/props/11.wav",
		h1_B12	=	"taunts/props/16.wav",
		h1_B13	=	"taunts/props/17.mp3",
		h1_B14	=	"taunts/props/29.wav",
		//Page 2
		h2_B1	=	"taunts/props/30.wav",
		h2_B2	=	"taunts/props/31.mp3",
		h2_B3	=	"taunts/props/33.mp3",
		h2_B4	=	"taunts/ill_be_back.wav",
		h2_B5	=	"taunts/oh_yea_he_will_pay.wav",
		h2_B6	=	"taunts/you_dont_know_the_power.wav",
		h2_B7	=	"taunts/you_underestimate_the_power.wav",
		h2_B8	=	"",
		h2_B9	=	"",
		h2_B10	=	"",
		h2_B11	=	"",
		h2_B12	=	"",
		h2_B13	=	"",
		h2_B14	=	"",
}
	
	function IsAlive(pl)							//Checks if player alive & if menu is not open
		if ( pl:Alive() && pl.MenuOpen !=1 ) then 
			hook.Run("TeamCheck",pl)
		else
			if ( pl:Alive() && pl.MenuOpen !=0 ) then 
				chat.AddText(Color(214,0,0),"[Taunt Menu]", Color(0,225,126)," Menu is already open.")//Chat message for player.
			else
				chat.AddText(Color(214,0,0),"[Taunt Menu]", Color(0,225,126)," You are dead, you need to be alive to use this.")//Chat message for player.
			end
		end	
	end
	 
	function TeamCheck(pl)							//Checks player team & opens last visited page by player.
		if pl:Team() == 1 then
			if pl.hMenuPage2==1 then
				hook.Run("phm_h2",pl)
			else
				if pl.hMenuPage3==1 then
					hook.Run("phm_h3",pl)
				else
					if pl.hMenuPage4==1 then
						hook.Run("phm_h4",pl)
					else
						if pl.hMenuPage5==1 then
							hook.Run("phm_h5",pl)
						else
							hook.Run("phm_h1",pl)
						end
					end
				end
			end
			pl.MenuOpen=1;
		else
			if pl:Team() == 2 then
				if pl.MenuPage2==1 then
					hook.Run("phm_p2",pl)
				else
					if pl.MenuPage3==1 then
						hook.Run("phm_p3",pl)
					else
						if pl.MenuPage4==1 then
							hook.Run("phm_p4",pl)
						else
							if pl.MenuPage5==1 then
								hook.Run("phm_p5",pl)
							else
								hook.Run("phm_p1",pl)
							end
						end
					end
				end
				pl.MenuOpen=1;
			else
				chat.AddText(Color(214,0,0),"[Taunt Menu]", Color(0,225,126)," You must be in one of the teams to use the menu.")
			end
		end
	end

	//Props
	function phm_p1(pl)								//Prop Menu Page1
		local p1_base = vgui.Create( "DFrame")//Menu Frame.
			p1_base:SetSize(176, 571) 
			p1_base:SetPos(ScrW()-176,ScrH()-932)//932, old 779
			p1_base:SetTitle("Taunts - Page 1")
			p1_base:SetVisible( true )
			p1_base:SetDeleteOnClose(false)
			p1_base:ShowCloseButton(false)
			p1_base:SetDraggable(false)
			p1_base:MakePopup()
			p1_base:SetKeyBoardInputEnabled(false)
			p1_base:SetMouseInputEnabled(true)
			p1_base.Paint = function()
								draw.RoundedBox( 8, 0, 0, p1_base:GetWide(), p1_base:GetTall(), MenuColor )
							end
		local p1_base_bX = vgui.Create( "DButton", p1_base )	//Close Menu Button
			p1_base_bX:SetSize(35, 25)
			p1_base_bX:SetPos(69, 535)
			p1_base_bX:SetText("Close")
			p1_base_bX:SetTextColor(ButtonTextColor)
			p1_base_bX.Paint	=	function()
										surface.SetDrawColor(19, 105, 153)
										surface.DrawRect( 0, 0, p1_base_bX:GetWide(), p1_base_bX:GetTall() )
									end
			p1_base_bX.DoClick	=	function()
										p1_base:Close()
										pl.MenuOpen=0;
									end
		local p1_base_bNxt = vgui.Create( "DButton", p1_base )	//Next Page Button
			p1_base_bNxt:SetSize(55, 25)
			p1_base_bNxt:SetPos(107, 535)
			p1_base_bNxt:SetText("Next")
			p1_base_bNxt:SetTextColor(ButtonTextColor)
			p1_base_bNxt.Paint	=	function()
										surface.SetDrawColor(19, 105, 153)
										surface.DrawRect( 0, 0, p1_base_bNxt:GetWide(), p1_base_bNxt:GetTall() )
									end
			p1_base_bNxt.DoClick =	function()
										p1_base:Close() 
										hook.Run("phm_p2",pl)
									end	
		local b1 = vgui.Create("DButton", p1_base)	//Button1
			b1:SetSize(150, 33)
			b1:SetPos(12,35) 
			b1:SetText(propButton["p1_B1"]) 
			b1:SetTextColor(ButtonTextColor)
			b1.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b1:GetWide(), b1:GetTall() )
							end
			b1.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B1"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b2 = vgui.Create( "DButton", p1_base )	//Button2
			b2:SetSize(150, 33)
			b2:SetPos(12, 70)
			b2:SetText(propButton["p1_B2"])
			b2:SetTextColor(ButtonTextColor)
			b2.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b2:GetWide(), b2:GetTall() )
							end
			b2.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B2"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b3 = vgui.Create( "DButton", p1_base )	//Button3
			b3:SetSize(150, 33)
			b3:SetPos(12, 105)
			b3:SetText(propButton["p1_B3"])
			b3:SetTextColor(ButtonTextColor)
			b3.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b3:GetWide(), b3:GetTall() )
							end
			b3.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B3"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b4 = vgui.Create( "DButton", p1_base )	//Button4
			b4:SetSize(150, 33)
			b4:SetPos(12, 140)
			b4:SetText(propButton["p1_B4"])
			b4:SetTextColor(ButtonTextColor)
			b4.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b4:GetWide(), b4:GetTall() )
							end
			b4.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B4"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b5 = vgui.Create( "DButton", p1_base )	//Button5
			b5:SetSize(150, 33)
			b5:SetPos(12, 175)
			b5:SetText(propButton["p1_B5"])
			b5:SetTextColor(ButtonTextColor)
			b5.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b5:GetWide(), b5:GetTall() )
							end
			b5.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B5"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b6 = vgui.Create( "DButton", p1_base )	//Button6
			b6:SetSize(150, 33)
			b6:SetPos(12, 210)
			b6:SetText(propButton["p1_B6"])
			b6:SetTextColor(ButtonTextColor)
			b6.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b6:GetWide(), b6:GetTall() )
							end
			b6.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B6"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b7 = vgui.Create( "DButton", p1_base )	//Button7
			b7:SetSize(150, 33)
			b7:SetPos(12, 245)
			b7:SetText(propButton["p1_B7"])
			b7:SetTextColor(ButtonTextColor)
			b7.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b7:GetWide(), b7:GetTall() )
							end
			b7.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B7"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b8 = vgui.Create( "DButton", p1_base )	//Button8
			b8:SetSize(150, 33)
			b8:SetPos(12, 280)
			b8:SetText(propButton["p1_B8"])
			b8:SetTextColor(ButtonTextColor)
			b8.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b8:GetWide(), b8:GetTall() )
							end
			b8.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B8"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b9 = vgui.Create( "DButton", p1_base )	//Button9
			b9:SetSize(150, 33)
			b9:SetPos(12, 315)
			b9:SetText(propButton["p1_B9"])
			b9:SetTextColor(ButtonTextColor)
			b9.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b9:GetWide(), b9:GetTall() )
							end
			b9.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B9"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b10 = vgui.Create( "DButton", p1_base )	//Button10
			b10:SetSize(150, 33)
			b10:SetPos(12, 350)
			b10:SetText(propButton["p1_B10"])
			b10:SetTextColor(ButtonTextColor)
			b10.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b10:GetWide(), b10:GetTall() )
							end
			b10.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B10"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b11 = vgui.Create( "DButton", p1_base )	//Button11		
			b11:SetSize(150, 33)
			b11:SetPos(12, 385)
			b11:SetText(propButton["p1_B11"])
			b11:SetTextColor(ButtonTextColor)
			b11.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b11:GetWide(), b11:GetTall() )
							end
			b11.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B11"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b12 = vgui.Create( "DButton", p1_base )	//Button12
			b12:SetSize(150, 33)
			b12:SetPos(12, 420)
			b12:SetText(propButton["p1_B12"])
			b12:SetTextColor(ButtonTextColor)
			b12.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b12:GetWide(), b12:GetTall() )
							end
			b12.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B12"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b13 = vgui.Create( "DButton", p1_base )	//Button13
			b13:SetSize(150, 33)
			b13:SetPos(12, 455)
			b13:SetText(propButton["p1_B13"])
			b13:SetTextColor(ButtonTextColor)
			b13.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b13:GetWide(), b13:GetTall() )
							end
			b13.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B13"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b14 = vgui.Create( "DButton", p1_base )	//Button14
			b14:SetSize(150, 33)
			b14:SetPos(12, 490)
			b14:SetText(propButton["p1_B14"])
			b14:SetTextColor(ButtonTextColor)
			b14.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b14:GetWide(), b14:GetTall() )
							end
			b14.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(propWString["p1_B14"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
	end

	//Hunters
	function phm_h1(pl)								//Hunter Menu Page1
		local p1_base = vgui.Create( "DFrame")//Menu Frame.
			p1_base:SetSize(176, 571) 
			p1_base:SetPos(ScrW()-176,ScrH()-932)//932, old 779
			p1_base:SetTitle("Taunts - Page 1")
			p1_base:SetVisible( true )
			p1_base:SetDeleteOnClose(false)
			p1_base:ShowCloseButton(false)
			p1_base:SetDraggable(false)
			p1_base:MakePopup()
			p1_base:SetKeyBoardInputEnabled(false)
			p1_base:SetMouseInputEnabled(true)
			p1_base.Paint = function()
								draw.RoundedBox( 8, 0, 0, p1_base:GetWide(), p1_base:GetTall(), MenuColor )
							end
		local p1_base_bX = vgui.Create( "DButton", p1_base )	//Close Menu Button
			p1_base_bX:SetSize(35, 25)
			p1_base_bX:SetPos(69, 535)
			p1_base_bX:SetText("Close")
			p1_base_bX:SetTextColor(ButtonTextColor)
			p1_base_bX.Paint	=	function()
										surface.SetDrawColor(19, 105, 153)
										surface.DrawRect( 0, 0, p1_base_bX:GetWide(), p1_base_bX:GetTall() )
									end
			p1_base_bX.DoClick	=	function()
										p1_base:Close()
										pl.MenuOpen=0;
									end
		local p1_base_bNxt = vgui.Create( "DButton", p1_base )	//Next Page Button
			p1_base_bNxt:SetSize(55, 25)
			p1_base_bNxt:SetPos(107, 535)
			p1_base_bNxt:SetText("Next")
			p1_base_bNxt:SetTextColor(ButtonTextColor)
			p1_base_bNxt.Paint	=	function()
										surface.SetDrawColor(19, 105, 153)
										surface.DrawRect( 0, 0, p1_base_bNxt:GetWide(), p1_base_bNxt:GetTall() )
									end
			p1_base_bNxt.DoClick =	function()
										p1_base:Close() 
										hook.Run("phm_h2",pl)
									end	
		local b1 = vgui.Create("DButton", p1_base)	//Button1
			b1:SetSize(150, 33)
			b1:SetPos(12,35) 
			b1:SetText(hunterButton["h1_B1"]) 
			b1:SetTextColor(ButtonTextColor)
			b1.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b1:GetWide(), b1:GetTall() )
							end
			b1.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B1"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b2 = vgui.Create( "DButton", p1_base )	//Button2
			b2:SetSize(150, 33)
			b2:SetPos(12, 70)
			b2:SetText(hunterButton["h1_B2"])
			b2:SetTextColor(ButtonTextColor)
			b2.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b2:GetWide(), b2:GetTall() )
							end
			b2.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B2"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b3 = vgui.Create( "DButton", p1_base )	//Button3
			b3:SetSize(150, 33)
			b3:SetPos(12, 105)
			b3:SetText(hunterButton["h1_B3"])
			b3:SetTextColor(ButtonTextColor)
			b3.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b3:GetWide(), b3:GetTall() )
							end
			b3.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B3"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b4 = vgui.Create( "DButton", p1_base )	//Button4
			b4:SetSize(150, 33)
			b4:SetPos(12, 140)
			b4:SetText(hunterButton["h1_B4"])
			b4:SetTextColor(ButtonTextColor)
			b4.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b4:GetWide(), b4:GetTall() )
							end
			b4.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B4"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b5 = vgui.Create( "DButton", p1_base )	//Button5
			b5:SetSize(150, 33)
			b5:SetPos(12, 175)
			b5:SetText(hunterButton["h1_B5"])
			b5:SetTextColor(ButtonTextColor)
			b5.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b5:GetWide(), b5:GetTall() )
							end
			b5.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B5"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b6 = vgui.Create( "DButton", p1_base )	//Button6
			b6:SetSize(150, 33)
			b6:SetPos(12, 210)
			b6:SetText(hunterButton["h1_B6"])
			b6:SetTextColor(ButtonTextColor)
			b6.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b6:GetWide(), b6:GetTall() )
							end
			b6.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B6"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b7 = vgui.Create( "DButton", p1_base )	//Button7
			b7:SetSize(150, 33)
			b7:SetPos(12, 245)
			b7:SetText(hunterButton["h1_B7"])
			b7:SetTextColor(ButtonTextColor)
			b7.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b7:GetWide(), b7:GetTall() )
							end
			b7.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B7"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b8 = vgui.Create( "DButton", p1_base )	//Button8
			b8:SetSize(150, 33)
			b8:SetPos(12, 280)
			b8:SetText(hunterButton["h1_B8"])
			b8:SetTextColor(ButtonTextColor)
			b8.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b8:GetWide(), b8:GetTall() )
							end
			b8.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B8"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b9 = vgui.Create( "DButton", p1_base )	//Button9
			b9:SetSize(150, 33)
			b9:SetPos(12, 315)
			b9:SetText(hunterButton["h1_B9"])
			b9:SetTextColor(ButtonTextColor)
			b9.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b9:GetWide(), b9:GetTall() )
							end
			b9.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B9"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b10 = vgui.Create( "DButton", p1_base )	//Button10
			b10:SetSize(150, 33)
			b10:SetPos(12, 350)
			b10:SetText(hunterButton["h1_B10"])
			b10:SetTextColor(ButtonTextColor)
			b10.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b10:GetWide(), b10:GetTall() )
							end
			b10.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B10"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b11 = vgui.Create( "DButton", p1_base )	//Button11		
			b11:SetSize(150, 33)
			b11:SetPos(12, 385)
			b11:SetText(hunterButton["h1_B11"])
			b11:SetTextColor(ButtonTextColor)
			b11.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b11:GetWide(), b11:GetTall() )
							end
			b11.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B11"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b12 = vgui.Create( "DButton", p1_base )	//Button12
			b12:SetSize(150, 33)
			b12:SetPos(12, 420)
			b12:SetText(hunterButton["h1_B12"])
			b12:SetTextColor(ButtonTextColor)
			b12.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b12:GetWide(), b12:GetTall() )
							end
			b12.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B12"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b13 = vgui.Create( "DButton", p1_base )	//Button13
			b13:SetSize(150, 33)
			b13:SetPos(12, 455)
			b13:SetText(hunterButton["h1_B13"])
			b13:SetTextColor(ButtonTextColor)
			b13.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b13:GetWide(), b13:GetTall() )
							end
			b13.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B13"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
		local b14 = vgui.Create( "DButton", p1_base )	//Button14
			b14:SetSize(150, 33)
			b14:SetPos(12, 490)
			b14:SetText(hunterButton["h1_B14"])
			b14:SetTextColor(ButtonTextColor)
			b14.Paint	=	function()
								surface.SetDrawColor(19, 105, 153)
								surface.DrawRect( 0, 0, b14:GetWide(), b14:GetTall() )
							end
			b14.DoClick	=	function () 
								net.Start("send_taunt")
									net.WriteString(hunterWString["h1_B14"])
								net.SendToServer()
								p1_base:Close() pl.MenuOpen=0;
							end
	end

	//Hook List 
	hook.Add("phm_p1","Calling Prop Menu page 1",phm_p1)//Hook to call phm_p1(Menu Page 1)
	hook.Add("phm_p2","Calling Prop Menu page 2",phm_p2)//Hook to call phm_p2(Menu Page 2)
	hook.Add("phm_p3","Calling Prop Menu page 3",phm_p3)//Hook to call phm_p3(Menu Page 3)
	hook.Add("phm_p4","Calling Prop Menu page 4",phm_p4)//Hook to call phm_p4(Menu Page 4)
	hook.Add("phm_p5","Calling Prop Menu page 5",phm_p5)//Hook to call phm_p4(Menu Page 5)
	
	hook.Add("phm_h1","Calling Hunter Menu Page 1",phm_h1)//Hool to call phm_h1(Menu Page 1)
	hook.Add("phm_h2","Calling Hunter Menu Page 2",phm_h2)//Hool to call phm_h2(Menu Page 2)
	hook.Add("phm_h3","Calling Hunter Menu Page 3",phm_h3)//Hool to call phm_h3(Menu Page 3)
	hook.Add("phm_h4","Calling Hunter Menu Page 4",phm_h4)//Hool to call phm_h4(Menu Page 4)
	hook.Add("phm_h5","Calling Hunter Menu Page 5",phm_h5)//Hool to call phm_h4(Menu Page 5)
	
	hook.Add("TeamCheck","Call check pl.Team()",TeamCheck)//Hook to call TeamCheck
	
	local FKeyMenus = {
		KEY_C = IsAlive;
		KEY_F4 = IsAlive;
	};
	hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function( _p, _bind, pressed )
		local _key = "KEY_" .. string.upper( input.LookupBinding( _bind ) );
		local _func = FKeyMenus[ _key ];
		if ( _func ) then  
			_func( LocalPlayer() );
		end 
	end);
end

:snip: nevermind, misread