Here is something I put together. It will allow you to return information about a player who is registered in UCL by passing their SteamID, IP, or UID (however they were added to UCL)
--[[
Function: ULib.ucl.getUserInfoFromID
Returns a table containing the name and group of a player in the UCL table of users if they exist.
Parameters:
id - The SteamID, IP, or UniqueID of the user you wish to check.
]]
function ULib.ucl.getUserInfoFromID( id )
ULib.checkArg( 1, "ULib.ucl.addUser", "string", id )
id = id:upper() -- In case of steamid, needs to be upper case
if ucl.users[ id ] then
return ucl.users[ id ]
else
return nil
end
end
Since this returns a table, you would need to do something like this to get a player's group:
ULib.ucl.getUserInfoFromID( "STEAM_0:1:123456" ).group