Ulysses
General => Developers Corner => Topic started by: Shij? on January 21, 2015, 11:08:37 PM
-
How do you put the ULX Groups that you made onto the Murder scoreboard?
-
There are several discussions here in the developers corner section of the forum regarding scoreboards, some of them even mentioning groups.
Try going to the main dev corner index page, and searching for the word "scoreboard".
Ive no idea if any are Murder specific, but any discussion of scoreboard would likely have similar GUI/derma code.
As i've mentioned in a few of the other scoreboard discussions, we have a nice command called "GetUserGroup (http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#Player:GetUserGroup)" that would return the group the player is in.
-
I followed your advice and added "GetUserGroup" but the only problem is that it's not aligning in the center of the scoreboard.
Don't know if anyone knows how to fix this but, I'll try find a way to fix it.
(http://puu.sh/eTPx9/d105a64282.png) (http://puu.sh/eTSSl/add34cf95a.jpg)
-
Hello,
thats because you are using the wrong x,y coordinates.
draw.DrawText(ply:GetUserGroup(), "ScoreboardPlayer", w/2, 9, color_black, 1)
Take a look at the wiki (http://wiki.garrysmod.com/page/draw/DrawText), hopefully this helps you a bit.
Avoid