DarkRP custom hud help!

draw.DrawText(LocalPlayer():Nick(), “HudSelectionText”, 840, ScrH() - 702, Color(100, 180, 0,255))

This works except the text is way to small for comfort, any help on this?

also how do I make it have a certain font (I want to make a san andreas looking salary font)

You can create a font using:
http://wiki.garrysmod.com/page/surface/CreateFont

When you download the font you want to use, open up the .ttf file, and use the “Font Name:” that you see when you open it for the {font = “Name Here”}.

To install a font, it goes in your “garrysmod/resource/fonts/” directory.

This is probably what you’re looking for. And this.


surface.CreateFont( "SanAndreasHUD", {
	font = "Diplmoa",
	size = 13,
	weight = 500,
	blursize = 0,
	scanlines = 0,
	antialias = true,
	underline = false,
	italic = false,
	strikeout = false,
	symbol = false,
	rotary = false,
	shadow = false,
	additive = false,
	outline = false,
} )

draw.DrawText(LocalPlayer():Nick(), “HudSelectionText”, 840, ScrH() - 702, Color(100, 180, 0,255))

this is an exact line I want to make the text BIGGER the font is okay

Make your own font then.

You can’t make font larger with draw.DrawText.

So it has to be a small font forever?

No. You are not listening. Use surface.CreateFont to make a font in lua. You then use the HudSelectionText font in the font you created.

can I get an example please?

[editline]30th December 2013[/editline]

And where do I put the font code

You just got an example

Put it just about anywhere in your hud file…