Garry's Mod comes with a built-in permission system providing the groups admin and superadmin. Players are assigned to these groups through the users.txt file.
Find the SteamID
For users.txt you need the SteamID in the format STEAM_0:x:xxxxxxx – not the SteamID64.
Add an admin
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open the file
Open the following file:/garrysmod/settings/users.txt -
Add the players
Add the players to the matching group. On the left is a freely chosen name, on the right the SteamID:"Users" { "superadmin" { "MyName" "STEAM_0:1:12345678" } "admin" { "Friend" "STEAM_0:0:87654321" } } -
Start the server
Save the file and start your server.
Use admin commands with ULX
The built-in system only assigns permission groups, it does not provide admin commands or menus. In practice ULX together with ULib is used for that.
-
Install ULX and ULib
Add both addons to your Workshop collection (ULX with the ID557962280and ULib with the ID557962238) or upload them manually to the folders/garrysmod/addons/ulx/and/garrysmod/addons/ulib/. You can find out how in the guide Add Mods. -
Restart the server
Fully restart your server. -
Assign permissions
Afterwards assign the permissions in-game or via the server console:ulx adduser <Name> superadmin
