Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: iitiago on September 30, 2019, 09:55:52 AM

Title: Get all users in a group
Post by: iitiago on September 30, 2019, 09:55:52 AM
How would I get all users in a group alongside their steamid? I thought about using getUsers() but have no clue how to use this function.
Title: Re: Get all users in a group
Post by: JamminR on September 30, 2019, 07:29:08 PM
Ulib.ucl stores all info. There's a Ulib.ucl.groups that stores other table info, including I think, members.
As for how to use ULib commands, don't forget we have docs.
https://ulyssesmod.net/docs/files/lua/ulib/shared/player-lua.html#getUsers


Title: Re: Get all users in a group
Post by: iitiago on October 01, 2019, 10:25:54 AM
Ulib.ucl stores all info. There's a Ulib.ucl.groups that stores other table info, including I think, members.
As for how to use ULib commands, don't forget we have docs.
https://ulyssesmod.net/docs/files/lua/ulib/shared/player-lua.html#getUsers




Ah ok and I read the docs to find getUsers but didnt understand the args required. Ive been looking for the Ulib.ucl.groups in the docs and can't find it. Can you point me in the right direction please?
Title: Re: Get all users in a group
Post by: Timmy on October 01, 2019, 12:45:31 PM
Stickly Man! posted some example code on how to use the data in ULib.ucl.users to get all members of a certain group in Topic: Listing group members (https://forums.ulyssesmod.net/index.php/topic,8130.msg41228.html#msg41228).

ULib.getUsers only works on online players. It can be used to get all active players in a certain group. Bytewave posted some examples in Topic: ULib.getUsers help (https://forums.ulyssesmod.net/index.php/topic,10181.msg52217.html#msg52217).
Title: Re: Get all users in a group
Post by: JamminR on October 01, 2019, 08:15:12 PM
UCL - It's a table. It stores all user/group info - (U)lib Access (C)ontrol (L)ist
https://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html


Thanks for the assist Timmy. It was late and i totally forgot .users. Thought there might actually be users in .groups


Title: Re: Get all users in a group
Post by: iitiago on October 02, 2019, 08:26:07 AM
Stickly Man! posted some example code on how to use the data in ULib.ucl.users to get all members of a certain group in Topic: Listing group members (https://forums.ulyssesmod.net/index.php/topic,8130.msg41228.html#msg41228).

ULib.getUsers only works on online players. It can be used to get all active players in a certain group. Bytewave posted some examples in Topic: ULib.getUsers help (https://forums.ulyssesmod.net/index.php/topic,10181.msg52217.html#msg52217).

UCL - It's a table. It stores all user/group info - (U)lib Access (C)ontrol (L)ist
https://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html

Thank you guys soo much :D

Thanks for the assist Timmy. It was late and i totally forgot .users. Thought there might actually be users in .groups