How do you give friends admin rights without a password to the server?

I was playing gmod with a friend and he couldn't use some admin items and I wanted to give him admin, but the tutorials we found said something about a password. We don't use a password when play; we just connect via ipv4 and the connect
command. How do I give him admin rights?
Best Answer
After some research I found that you should be able to add admins by altering the users.txt
file.
You can find this file in:STEAMFOLDER > GarrysMod > garrysmod > settings > users.txt
In this file an entry looks like this:
"admin"
{
//"garry" "STEAM_0:1:7099"
}
What you should do is enter a line with the info of your friend so it ends up like this:
"admin"
{
"Friends_Username" "STEAM_0:0:0000"
}
You can find a steam id trough various websites or steam itself.
Pictures about "How do you give friends admin rights without a password to the server?"



How do I run as administrator without password?
First you'll need to enable the built-in Administrator account, which is disabled by default. To do so, search for Command Prompt in the Start menu, right-click the Command Prompt shortcut, and select Run as administrator. The Administrator user account is now enabled, although it has no password.How do I add an admin user without admin rights?
How do I enable standard users to run a program with administrator rights without a password Windows 10?
To make a Program Run as Administrator in Windows 11/10:How do I give someone administrator privileges?
Assign an admin roleAllow a Standard User Run Programs With Admin Rights | No Password Needed
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Alena Darmel, Monstera, Nicole Michalou, Samson Katt