Ulysses

General => Developers Corner => Topic started by: Aloe Vera on April 01, 2020, 08:13:08 AM

Title: ULX give group
Post by: Aloe Vera on April 01, 2020, 08:13:08 AM
How can I give a group (example: member) to someone who enters the server?
I know that the "guest" group exists, but I want to create a group that is called a member and that when people log in, the server already gives them that group. The last option would be to try to configure the group "guest"

PLS HELP  :( :( :( :( :(
Title: Re: ULX give group
Post by: JamminR on April 02, 2020, 06:51:25 PM
By default, there is no 'guest' group in Gmod. Perhaps you have a gamemode or mod that makes one.
Gmod knows user, admin and superadmin.

Straight Gmod Lua, you want SetUserGroup (https://wiki.facepunch.com/gmod/Player:SetUserGroup)
For ULib, you'd want ucl.addUser (https://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.addUser)