General > Developers Corner
Quick Question About HUD
Valgoid:
For my server I want it to display my server name on the top left hand corner of the players screens.
Can anyone help me with this?
Avoid:
Hey there,
try using this:
--- Code: ---draw.DrawText( GetHostName( ), "Default", x, y * 0.01, Color( 255, 255, 255, 120 ), TEXT_ALIGN_LEFT );
--- End code ---
Avoid
Valgoid:
That looks good, but what if we wanted to out an outline, so the text is white and outline is grey, you k ow what i mean so it looks better
Cobalt:
draw.SimpleTextOutlined( GetHostName(), "Trebuchet24", 5, 5, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP, 1, color_black )
JamminR:
Valgoid, in case you're not already when these two are showing you the actual code, you should really look up the functions they're showing you, so you know what the info inside them mean, using the Gmod wiki.
draw.DrawText
draw.SimpleTextOutlined
Navigation
[0] Message Index
[#] Next page
Go to full version