Displaying a Message

Hello Everyone. I’ve been looking this up for a while now but i can’t seem to find anything on this. How would you have a message displayed int he middle of your screen like so:

Thanks guys!

-Tobias

You can try using this: http://wiki.garrysmod.com/page/Player/PrintMessage

Yea either this or if you want to customize it then you’re going to have to use the surface or draw library in a hook like so:
[lua]
hook.Add(“HUDPaint”, “DrawText”, function()
draw.SimpleText(“Hello world!”, “Default”, ScrW()/2, ScrH()/2, Color(0,255,0), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
end)
[/lua]

But this will never go away, so you’d also have to do something like this after you create it:
[lua]
timer.Simple(5, function()
hook.Remove(“HUDPaint”, “DrawText”)
end)
[/lua]

Alright, thank you both!