The concommand method:ULX includes an "adduser" command. The help for this command is:
ulx adduser <user> <group>
user - The user to add
group - Choose from your own groups, or the defaults: "operator", "admin", or "superadmin"
This user WILL be added to the permanent users list!
Operators have no default access. This makes them great for "ulx userallow".
So, if I wanted to add user bob to the superadmins, I would enter at console "ulx adduser bob superadmin".
Or, if I only wanted bob to have access to "ulx slap", I would first use "ulx adduser bob operator", then 'ulx userallow bob "ulx slap"'. (Make sure you have the quotes around "ulx slap").
Even if you don't have any access, you can use this command from a listen server console or a dedicated server console.The file method:There are two ways to add users in ULib: You can add them to our file in data/ULib/users.txt, or you can add users to the default GM10 admin file. Due the complexity of our users file, and the benefits of adding users to the default file, we will only worry about the default file here.
See
http://wiki.garrysmod.com/?title=Player_Groups for how to edit the default Garry's mod user file. Our admin library imports from it.
[Edit-JamminR]- Changed link to editing default users.txt file - Wiki changed[Edit-JamminR]- Changed link to editing default users.txt file - Wiki changed again[Edit-Stickly Man!]- Updated post for release v3.51 (Removed references to immunity, etc. Contact me for the old post)