Ulysses
General => Developers Corner => Topic started by: Valgoid on July 11, 2014, 10:27:54 PM
-
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?
-
Hey there,
try using this:
draw.DrawText( GetHostName( ), "Default", x, y * 0.01, Color( 255, 255, 255, 120 ), TEXT_ALIGN_LEFT );
Avoid
-
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
-
draw.SimpleTextOutlined( GetHostName(), "Trebuchet24", 5, 5, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP, 1, color_black )
-
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 (http://wiki.garrysmod.com/page/draw/DrawText)
draw.SimpleTextOutlined (http://wiki.garrysmod.com/page/draw/SimpleTextOutlined)
-
I cant get it to work...
-
Hello,
that is not much of an explanation for your problem..Where exactly are you stuck?
Try adding the line Cobalt posted in a clientsided file, preferably in the HUDPaint section! :)
Avoid
-
I'm very confused, can you please write the whole script out? I honestly dont know whats going on.
-
I'm very confused, can you please write the whole script out? I honestly dont know whats going on.
Sorry, but that just makes me suspicious of you. Do you really know lua?
-
Very basic lua, yes but for some reason this script isnt working