• DarkRP custom hud help!
    9 replies, posted
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: [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]http://wiki.garrysmod.com/page/surface/CreateFont[/URL] 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.
[URL="http://www.gta-sanandreas.com/downloads/"]This is probably what you're looking for.[/URL] [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]And this.[/URL] [code]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, } )[/code]
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
[QUOTE=Fabulus;43365806]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[/QUOTE] 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
[QUOTE=Fabulus;43366152]can I get an example please? [editline]30th December 2013[/editline] And where do I put the font code[/QUOTE] You just got an example [QUOTE=code_gs;43365763][URL="http://www.gta-sanandreas.com/downloads/"]This is probably what you're looking for.[/URL] [URL="http://wiki.garrysmod.com/page/surface/CreateFont"]And this.[/URL] [code]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, } )[/code][/QUOTE] Put it just about anywhere in your hud file...
Sorry, you need to Log In to post a reply to this thread.