Effectively managing a Garry’s Mod server requires knowledge of essential admin commands and understanding permission systems. This guide covers the most important admin tools and commands for server administrators on Wasabi Hosting.
!ulx bring <player> // Teleport a player to you!ulx goto <player> // Teleport to a player!ulx return <player> // Return a player to their previous position!ulx teleport // Teleport to where you're looking!ulx spectate <player> // Spectate a player!ulx sslay <player> // Force a player to commit suicide!ulx slap <player> [damage] // Slap a player with optional damage!ulx whip <player> [times] // Slap a player multiple times!ulx freeze <player> // Freeze a player!ulx unfreeze <player> // Unfreeze a player!ulx god <player> // Make a player invulnerable!ulx hp <player> <amount> // Set a player's health!ulx armor <player> <amount> // Set a player's armor!ulx strip <player> // Remove a player's weapons!ulx noclip <player> // Toggle noclip for a player
!ulx kick <player> [reason] // Kick a player from the server!ulx ban <player> [minutes] [reason] // Ban a player!ulx banid <steamid> [minutes] [reason] // Ban a SteamID!ulx unban <steamid> // Unban a SteamID!ulx adduser <player> <group> // Add a user to a group!ulx removeuser <player> // Remove a user from their group!ulx userallow <player> <command> // Allow a user to use a command!ulx userdeny <player> <command> // Deny a user from using a command!ulx map <map> // Change the map!ulx maprestart // Restart the current map!ulx cexec <player> <command> // Force a player to execute a command!ulx rcon <command> // Execute a console command!ulx exec <filename> // Execute a config file!ulx luarun <lua code> // Run Lua code
!ulx who // List players and their ranks!ulx motd // Show the MOTD (Message of the Day)!ulx help // Show ULX help!ulx cvar <cvar> // Show the value of a console variable!ulx thetime // Show the server time!ulx uptime // Show the server uptime!ulx version // Show ULX version!ulx gag <player> // Prevent a player from using chat!ulx mute <player> // Prevent a player from using voice chat!ulx blind <player> // Blind a player!ulx jail <player> // Jail a player!ulx unjail <player> // Unjail a player
You can use these commands in the console with “ulx” instead of “!ulx”, for example: ulx bring playerName. All admin commands are accessible through your Wasabi Hosting Gamepanel.
!ulx adduser <player> <group> // Add a user to a group!ulx removeuser <player> // Remove a user from their group!ulx userallowid <steamid> <command> // Allow a SteamID to use a command!ulx userdenyid <steamid> <command> // Deny a SteamID from using a command!ulx groupallow <group> <command> // Allow a group to use a command!ulx groupdeny <group> <command> // Deny a group from using a command
To create custom groups, edit the data/ulib/groups.txt file or use these commands:
Copy
!ulx creategroup <group> // Create a new group!ulx setgroupcantarget <group> <target group> // Set which groups this group can target!ulx addgroup <group> <inherits from group> // Add a group that inherits permissions!ulx renamegroup <group> <newName> // Rename a group!ulx deletegroup <group> // Delete a group
/fadmin freeze <player> // Freeze a player/fadmin chatmute <player> // Mute a player's chat/fadmin voicemute <player> // Mute a player's microphone/fadmin jail <player> [seconds] // Jail a player/fadmin setteam <player> <team> // Set a player's team/fadmin strip <player> // Remove all weapons from a player/fadmin give <player> <weapon> // Give a weapon to a player
/fadmin kick <player> [reason] // Kick a player/fadmin ban <player> <time> [reason] // Ban a player/fadmin unban <SteamID> // Unban a player/fadmin setaccess <player> <rank> // Set a player's rank
!rank <player> <rank> // Set a player's rank!bring <player> // Teleport a player to you!goto <player> // Teleport to a player!kick <player> [reason] // Kick a player!ban <player> <length> [reason] // Ban a player!unban <SteamID or name> // Unban a player!mute <player> // Mute a player's voice chat!gag <player> // Mute a player's text chat!freeze <player> // Freeze a player!spectate <player> // Spectate a player
As a server owner on Wasabi Hosting, you have access to Rcon commands through the console:
Copy
status // Shows all players and their infochangelevel <map> // Changes the mapkickid <userid> [reason] // Kicks a player by useridbanid <minutes> <steamid> // Bans a SteamIDwriteid // Writes all bans to banned_user.cfghostname <name> // Changes the server namesv_password <password> // Sets a server password
!setmoney <player> <amount> // Set a player's money!addmoney <player> <amount> // Add money to a player!setjailpos // Set the jail position!addjailpos // Add a jail position!setspawn <team> // Set spawn for a job!resetvault // Reset the F4 menu price multiplier
!fpp_setting <setting> <value> // Change FPP settings!fpp_cleanup <type> // Clean up props of a certain type!fpp_cleanupdisconnected // Clean up props of disconnected players
-- Add to garrysmod/data/ulx/adverts.txt["Admin Cleanup"] = { command = "ulx luarun for _, ent in ipairs(ents.GetAll()) do if (ent:GetClass() == \"prop_physics\") then ent:Remove() end end", access = "admin"}["Reset All Money"] = { command = "ulx luarun for _, ply in ipairs(player.GetAll()) do ply:setDarkRPVar(\"money\", 1000) end", access = "superadmin"}["Disable Fall Damage"] = { command = "ulx luarun hook.Add(\"OnPlayerHitGround\",\"DisableFallDamage\",function(ply) return true end)", access = "admin"}
!ulx freeze @all // Freeze all players!ulx god @all // Make all players invulnerable!ulx hp @all 100 // Reset everyone's health to 100!ulx teleport @all <x> <y> <z> // Teleport all players to coordinates!ulx mapcycle <maplist> // Set a map cycle for your event
!ulx debuginfo // Show debug information!ulx luarun print(file.Read("cfg/server.cfg", "GAME")) // View server.cfg!ulx luarun PrintTable(hook.GetTable()) // List all registered hooks!ulx cvar sv_cheats // Check if sv_cheats is enabled!ulx luarun for k,v in pairs(player.GetAll()) do print(k,v:Nick(),v:GetUserGroup()) end // List all players and their ranks
!ulx banip <ip> [minutes] [reason] // Ban an IP address!ulx logspectate <0/1> // Toggle spectate logging!ulx logJoinLeaveEcho <0/1> // Toggle join/leave echo!ulx hidelogs <player> // Hide logs from a player
You can create custom admin commands by adding Lua files to your server’s lua/autorun/server directory:
Copy
-- Save as lua/autorun/server/heal_all_command.luaconcommand.Add("healall", function(ply) -- Only allow admins to use this command if not IsValid(ply) or ply:IsAdmin() then for _, p in ipairs(player.GetAll()) do if IsValid(p) then p:SetHealth(100) p:SetArmor(100) end end if IsValid(ply) then ply:ChatPrint("All players healed!") else print("All players healed!") end else ply:ChatPrint("You don't have permission to use this command!") endend)
By understanding these commands and permission systems, you’ll be equipped to effectively manage your Garry’s Mod server. If you need further assistance, contact our support team.