[Support] Permanent information message in the player screen !Help
-
Kalitos yes. Just draw text at a certain position on the screen with GSC
-
createServerText(font, text, fontScale, point, relativePoint, x, y, color, glowColor, alpha, glowAlpha, sort, team) { elem = createServerFontString(font, fontScale, team); elem setPoint(point, relativePoint, x, y); elem setText(text); elem.color = color; elem.glowColor = glowColor; elem.alpha = alpha; elem.glowAlpha = glowAlpha; elem.sort = sort; return elem; }
You can call this function like so
level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined);
ininit()
(iirc).
-
TheHiddenHour Thank you very much, I will try it.
-
TheHiddenHour said in Permanent information message in the player screen !Help:
level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined);
I tested your code, you have to replace the function name "createServerFontString" with "createServerText" and it works, another detail.
https://gyazo.com/bf6abc707abe9b107b58934bcaaf993d
As you look, this is the text, what I would like is to be able to locate it in the whole corner, not to stay in the middle corner floating.
-
Kalitos Ahh, my bad about the function name.
createServerFontString()
is the games built in function for drawing server text andcreateServerText()
is just my abstraction of it with additional parameters lmao.If you want to move the text, you need to change the
x
andy
parameters of your function call. Try messing with those numbers and see if you can get it somewhere you like. -
I will say this. Keep in mind a lot of players dislike gsc huds as it clutters the screen.
-
This post is deleted!
-
-
This post is deleted!
-
Kalitos i still dont understand how to make this pls can someone explain.....PLSLIKE WHERE DO I PUT THE CODE WHERE DO I PUT THE GSC IM CONFUSED