I need help with my hud

So I need some help right now with my hud, it’s a 5v5 gamemode everything is working,
we got 2 teams red and blue, how would I make it show up in my scoreboard, hud kinda thingy please help me

local base = vgui.Create(“DFrame”)
base:SetTitle(" Blue Team")
base:SetSize(200,400)
base:SetPos(0,200)

base.Paint = function()
draw.RoundedBox( 8, 0, 0, base:GetWide(), base:GetTall(), Color( 0, 60, 255, 100 ) )
end

local base2 = vgui.Create(“DFrame”)
base2:SetTitle(" Red Team")
base2:SetSize(200,400)
base2:SetPos(1480,200)

base2.Paint = function()
draw.RoundedBox( 8, 0, 0, base2:GetWide(), base2:GetTall(), Color( 255, 0, 0, 100 ) )
end

wat

Im confused. How would one get a gamemode together and have no clue about how to make a hud

lmao no, I mean like I have no clue how to get the scoreboard in the hud, so like tells me when people die,
I took out the kill feed because I want to make it look nice

If you don’t know how to make a hud: https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index1064.html

That is an old version, I wouldn’t recommend it.

Just go and hunt for videos on you tube, tons of them out there. Code blue made one, don’t come here without at-least some effort for research.
Aswell, you’r creating a DermaPanel, and it is poorly made for a Derma Panel. As well, I don’t want to show you code. But it looks like you need alot of help on your “finished gamemode” and yes, I am being sarcastic.

Aswell use


 brackets.


function GM:HUDPaint()
– Code here
end



Aswell, HUD's don't use vgui functions, they use draw values:
https://wiki.garrysmod.com/page/draw/SimpleText, https://wiki.garrysmod.com/page/draw/RoundedBox, https://wiki.garrysmod.com/page/draw/Text etc etc, just research.
Because if you made a gamemode, the first thing anyone on this entire planet would know is to research as well, the first thing you make before a gamemode is a tiny script, and this tiny script usually consists of a HUD or little thing that says Hello in chat.

[editline]20th November 2016[/editline]

Aswell, wtf you talking about. Change kill feed? if you have a kill feed done, why would you need to make a HUD then display kill feed. And don't ask anymore, because I have explained all above

[editline]20th November 2016[/editline]

And just like you'r Derma Panel it is clientsided. So put that in you'r scoreboard file. Or make a new clientsided file.

It is maybe outdated but it still gives you some basic informations he could need.

No but i’m saying that creating the gamemode itself(teams,players,guns,time limit,death,etc) is more difficult then making a hud. If all your posting is a dframe and no hooks after going through all that above then… :dead: