Pivity

Adding Text to HUD

Last read Never
#1

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'

Dumb x 2
#2

needs mysql support

it's pretty easy to look it up btw

example:

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.

Funny x 4
#3
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?

#4

Depends what HUD, Some are made differently, Should do though.

Disagree x 3
#5
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

#6
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

Funny x 2
#7
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?

#8

https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index5b6d.html

Funny x 1Dumb x 1
#9

https://wiki.garrysmod.com/page/surface/CreateFont

#10
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

#11
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

#12
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..

#13

I heard Japanese, whose watching anime?

#14
BySpookyavaat 17th of October 2016 00:11:33
I heard Japanese, whose watching anime?

weeb weeb go away go fuck a body pillow another day

Friendly x 1
#15
BySpookyavaat 17th of October 2016 00:11:33
I heard Japanese, whose watching anime?

fucking minecraft porn watching weeb <3

Users viewing this thread
Nobody