Thank you all for assisting me, though it did not appear to work for me. It was also apparent to me that I did not send my entire code, so some of it was lacking information.
This is my NEW CLIENTSIDE that I got from Mr. President.
function GM:ShowTeam( ply )
ply:SendLua("TeamDeathMatchMenu()")
end
This is my entire SERVERSIDE that I attempted to modify using what first Mr. President said, and it didn't really work. So then I tried to use Sticky Man's, but this wouldn't work at all, like not an error, no nothing, just nothing worked.
function TeamDeathMatchMenu(ply)
MainMenuFrame = vgui.Create( "DFrame" )
MainMenuFrame:SetSize( 600, 250 )
MainMenuFrame:SetTitle("Team Deathmatch Menu: Version" )
MainMenuFrame:Center()
MainMenuFrame:ShowCloseButton( true )
MainMenuFrame:SetDraggable( false )
if MainMenuFrame:IsVisible() then
MainMenuFrame:SetVisible(false)
else
MainMenuFrame:SetVisible(true)
end
function MainMenuFrame:Paint( w, h )
draw.RoundedBox( 0, 0, 0, w, h, Color(team.GetColor(LocalPlayer():Team()).r,team.GetColor(LocalPlayer():Team()).g,team.GetColor(LocalPlayer():Team()).b,50))
surface.SetDrawColor(0,0,0)
surface.DrawOutlinedRect(1,1,w-1,h-1)
end
end
concommand.Add( "TeamDeathMatchMenu", TeamDeathMatchMenu )