I have tried to put a custom font in hud and it just aint working can you help?
cl_hud
[CODE]
surface.CreateFont( "Font", {
font = "oldfont",
extended = false,
size = 30,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout = false,
symbol = false,
rotary = false,
shadow = false,
additive = false,
outline = true,
} )
--[[---------------------------------------------------------
Name: Players Name
-----------------------------------------------------------]]
draw.SimpleText("Name: " ..LocalPlayer():Nick(), "Font", 30, ScrH() - ScrH() + 30,Color(255,255,255, 255),0, 1)
--[[---------------------------------------------------------
Name: Players Money
-----------------------------------------------------------]]
if money == nil then
draw.SimpleText("Wallet: ".."Uknown Amount","Font", 30,ScrH() - ScrH() + 60, Color(255,255,255,255), 0, 1)
else
draw.SimpleText("Wallet: ".. DarkRP.formatMoney(LocalPlayer():getDarkRPVar("money")), "Font", 30, ScrH() - ScrH() + 60,Color(255,255,255, 255),0, 1)
end
[/CODE]
Screen Shot of were my font is
(resource/fonts/oldfont.ttf)
[url]https://gyazo.com/b0ee265fd596ef9bbe3338c5e26202f0[/url]
sv_textures
[CODE]
if ( SERVER ) then
resource.AddFile("resource/fonts/oldfont.ttf")
end
[/CODE]
Thanks,
What does the font look like when you open it in the font viewer? It might have a different name than just it's filename
[QUOTE=MPan1;51062632]What does the font look like when you open it in the font viewer? It might have a different name than just it's filename[/QUOTE]
I think that may be it, i'll try it now. Thanks
Sorry, you need to Log In to post a reply to this thread.