Adding Text to HUD
Hi, i didn't think this merited a job as it's such a minuscule thing to do, but could someone please give me the lua code i could drop into my hud file to write "originalrp.online" in the top right in the "gmod font" (i don't know the name of the font but i assume that others will know it)
I would be greatly appreciative of this,
Thanks,
-Tom
Edited I've also found that the font is called 'Derma'
needs mysql support
it's pretty easy to look it up btw
example:
probably will work if you have a basic sense of the language u can figure it out im too lazy to go in-game and test it.
BySpookyversity ๐ปat 14th of October 2016 19:26:04
needs mysql support
Laughs in deep self loathing
Edited
BySpookyversity ๐ปat 14th of October 2016 19:26:04
needs mysql supportit's pretty easy to look it up btwexample:local function autism() draw.SimpleText( "my community is SHIT", "font", 50, 10, Color(255,0,255,255), TEXT_ALIGN_LEFT ) end -- don't forget because it wasn't implied FUCK OFF TRIXTER hook.Add( "HUDPaint", "FUCKTRIXTER", autism )probably will work if you have a basic sense of the language u can figure it out im too lazy to go in-game and test it.
And i can just drop this into my gmod darkrp HUD and it'll work?
Depends what HUD, Some are made differently, Should do though.
ByDeception_at 14th of October 2016 20:27:48
Depends what HUD, Some are made differently, Should do though.
no, will work. doesn't matter what hud your using lol
By [Tom[O:G]at 14th of October 2016 19:29:32
Laughs in deep self loathingEditedAnd i can just drop this into my gmod darkrp HUD and it'll work?
tbh, I'd find somewhere on the heads up display where you see draw.{blah} and put it directly under that, make sure it's linked with a HUDPaint hook.
or just drop it in, which ever you prefer
Edited
ByTupac Shakurat 15th of October 2016 02:48:49
no, will work. doesn't matter what hud your using lol
GLUA/LUA/Lua/lua master62 here
BySpookyversity ๐ปat 15th of October 2016 04:47:49
tbh, I'd find somewhere on the heads up display where you see draw.{blah} and put it directly under that, make sure it's linked with a HUDPaint hook.or just drop it in, which ever you preferEditedGLUA/LUA/Lua/lua master62 here
How would i go about making the text bigger?
https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5b6d.html
https://wiki.garrysmod.com/page/surface/CreateFont
Code stolen from Japanese warlords, plz no leak ban plzzzzplz
ByDeception_at 15th of October 2016 17:29:24
surface.CreateFont( "Font", { font = "Derma", size = 30, -- Size Of Font weight = 500, blursize = 0, scanlines = 0, antialias = true }) local function MyServer() draw.SimpleText( "Join my server maaaaan" ,"Font",20,20, Color(255,255,255),TEXT_ALIGN_LEFT ) end hook.Add("HUDPaint","MyServer",MyServer)Code stolen from Japanese warlords, plz no leak ban plzzzzplz
DermaFull looks better when big
BySpookyversity ๐ปat 16th of October 2016 04:56:35
DermaFull looks better when big
Tom said 'I've also found that the font is called 'Derma' Not my fault japanese warlords don't innovate..
I heard Japanese, whose watching anime?