Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: killforfun on May 23, 2014, 02:49:29 AM
-
I've seen that the Groups have an index parameter only that does not seem to work when used in my script.
example ply:SetTeam( index number here )
I'm aware that I could use ulx.adduser(ply,target,"group name here) though when using that ulx will echo "User has added namehere to group whatever" and i'd rather not see the echo. So where/how can I get the team ID numbers :o
Thanks!
-
If I understood you right, you can technically use ucl.addUser (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser) instead of "ulx.adduser".
-
Teams and Groups are NOT the same.
Setting someone's team may make them appear to be in a group, but their group will have not changed.
Using UCL.addUser will indeed change their group (and probably not their team until they reconnect) and it shouldn't echo anything.
-
I keep getting "...attempt to index global 'ucl (a nil value) Kill for fun:!minge bot"
Do i need to save the file somewhere other then the ulx/modules/sh directory or do i need to include a file? ???
-
ucl is part of the ULib library. So you would call the function like this:
ULib.ucl.addUser
-
Now how could I go about linking this with the ulx command API?
local CATEGORY_NAME = "User Management"
function ulx.addUser(ply, minge)
ULib.ucl.addUser( ply:SteamID(), {}, {}, minge )
//ulx.adduser(ply,target,"minge")
end