Skip to content

Installing and Configuring ULX
​

Quick guide to installing and configuring the ULX admin system on your Garry's Mod server.

Introduction ​

ULX is a powerful administrative system for Garry's Mod servers that provides a wide range of server management capabilities.

In this guide, we'll cover the process of downloading and installing ULX and ULib, granting superadmin rights, and using the ULX interface.

Downloading the Addons ​

First, you need to download ULX and ULib to your PC.

[Download ULib]

[Download ULX]

Installing on the Server ​

  1. Upload both archives to the /garrysmod/addons/ path using the file manager in the control panel.
  2. Right-click on the ULib archive, select the "extract" option. Delete the archive after extraction is complete. For convenience, you can rename the new folder to ulib, removing the -master suffix.
  3. Extract the ULX archive, delete the archive after extraction, and also rename the folder to ulx, removing the -master suffix.

ulx installed

Restart the server to load ULX and ULib before running the commands below.

TIP

The links are safe and point to the official GitHub repository from the original addon developer - Team Ulysses.

Initial ULX Setup ​

After installing ULX and ULib, you need to perform the initial setup of administrator privileges.

Granting Superadmin Rights ​

By default, the list of superadmins and admins is empty. Let's fix that!

Granting Rights via Nickname ​

Go to your game server console and grant yourself superadmin rights using the command:

ulx adduser "nickname" superadmin

where nickname is your Steam nickname. You must be connected to the game server for this command; keep the quotes if your name contains spaces. Run it in the hosting panel console.

Granting Rights via SteamID ​

If your nickname is difficult to type, or you don't want to join the server to grant rights, you can also grant yourself superadmin rights using your SteamID.

You can get it using the website steamid.xyz

Example command execution:

lua
ulx adduserid STEAM_0:1:7099 superadmin

Opening the Menu ​

In the game itself, you can use the ULX management menu - this is where administrator and regular user rights are configured, as well as various commands are executed.

You can open the menu using the console command (in the game):

lua
ulx menu

Assigning a Key to Open the Menu ​

For more convenient menu access, you can also assign it to any key that works for you.

This is done using the following command:

lua
bind [key] "ulx menu"

For example:

lua
bind m "ulx menu"

Done! Now the menu will open without using extra console commands.

ulx open

Now you can proceed with further ULX configuration without unnecessary hassle.

ULX Console Commands ​

Use ulx help to see the commands available to you on your server.

<Arguments> are required; [arguments] are optional. Leave out the brackets and replace Sen, Katie and the example SteamID with your players' details. Put names containing spaces in quotes.

Run commands in the hosting panel console or the game console with the necessary permissions. Use the game console for menus, spectating, bring, goto, teleport, jailtp and ent. If you leave out an optional [player], the command targets you.

Commands with multiple targets accept * for everyone, ^ for yourself, or nicknames separated by commas.

Fun Commands ​

CommandExampleDescription
ulx armor <player> <armor>ulx armor Sen 100Sets armor from 0 to 255.
ulx blind <player> [amount]ulx blind Sen 255Darkens the player's screen by 0–255. Defaults to 255, a completely black screen.
ulx unblind <player>ulx unblind SenRemoves the screen darkening.
ulx cloak [player] [amount]ulx cloak Sen 255Makes the player invisible. The amount ranges from 0 to 255; the default of 255 gives full invisibility.
ulx uncloak [player]ulx uncloak SenMakes the player visible again.
ulx freeze <player>ulx freeze SenFreezes the player in place.
ulx unfreeze <player>ulx unfreeze SenUnfreezes the player.
ulx god [player]ulx god SenEnables god mode.
ulx ungod [player]ulx ungod SenDisables god mode.
ulx hp <player> <health>ulx hp Sen 100Sets health to 1 or more.
ulx ignite <player> [seconds]ulx ignite Sen 10Sets the player on fire for 1–300 seconds. Defaults to 300 seconds.
ulx unignite <player>ulx unignite SenExtinguishes the selected player.
ulx unigniteallulx unigniteallExtinguishes all players and burning entities on the server.
ulx jail <player> [seconds]ulx jail Sen 60Jails the player for the given number of seconds. With no duration or with 0, lasts until ulx unjail.
ulx unjail <player>ulx unjail SenReleases the player from the cage.
ulx jailtp <player> [seconds]ulx jailtp Sen 60Teleports the player where you are looking and jails them. Duration is in seconds, as with ulx jail.
ulx maul <player>ulx maul SenSets fast zombies on the player.
ulx playsound <sound>ulx playsound buttons/button14.wavPlays a sound for everyone. Use a path relative to sound/.
ulx ragdoll <player>ulx ragdoll SenTurns the player into a ragdoll.
ulx unragdoll <player>ulx unragdoll SenTurns the ragdoll back into a player.
ulx slap <player> [damage]ulx slap Sen 5Knocks the player around and deals the specified damage. Damage defaults to 0.
ulx whip <player> [count] [damage]ulx whip Sen 5 2Repeats slap between 2 and 100 times. Defaults to 10 times with no damage.
ulx slay <player>ulx slay SenKills the selected player.
ulx sslay <player>ulx sslay SenKills the player without the usual death effects.
ulx strip <player>ulx strip SenRemoves the player's weapons.

Console Commands and Lua ​

CommandExampleDescription
ulx cexec <player> <command>ulx cexec Sen "say Hello"Runs a command in the player's console, if the game allows it to run remotely.
ulx luarun <code>ulx luarun =game.GetMap()Runs Lua on the server. Use = before an expression to print its result.
ulx rcon <command>ulx rcon statusRuns a command in the server console.
ulx exec <file>ulx exec server.cfgRuns a configuration file from garrysmod/cfg/.
ulx ent <class> [parameters]ulx ent prop_physics model:models/props_c17/oildrum001.mdlSpawns an entity where you are looking. Parameters use key:value, separated by |.

Groups and Permissions ​

Use the full command name in quotes: "ulx kick". Access tags limit arguments, such as the maximum damage. See ulx usermanagementhelp for details.

CommandExampleDescription
ulx addgroup <group> [parent]ulx addgroup moderator userCreates a group with inherited permissions. Inherits from user by default.
ulx adduser <player> <group>ulx adduser Sen moderatorAdds an online player to an existing group.
ulx adduserid <ID> <group>ulx adduserid STEAM_0:1:123456 moderatorAssigns a group by SteamID, IP or UniqueID. The player does not need to be online.
ulx groupallow <group> <command> [access_tag]ulx groupallow moderator "ulx kick"Gives a group access to a command.
ulx groupdeny <group> <command>ulx groupdeny moderator "ulx kick"Removes a permission from the group. Inherited permissions still apply.
ulx removegroup <group>ulx removegroup moderatorDeletes a group.
ulx removeuser <player>ulx removeuser SenDeletes the player's record, including their group and personal permissions.
ulx removeuserid <ID>ulx removeuserid STEAM_0:1:123456Deletes a player record by SteamID, IP or UniqueID.
ulx renamegroup <group> <new_name>ulx renamegroup moderator helperRenames an existing group.
ulx setgroupcantarget <group> [targets]ulx setgroupcantarget moderator "!%admin"Limits who the group can target. The example excludes admins and higher ranks. Omit the second argument to remove the limit.
ulx userallow <player> <command> [access_tag]ulx userallow Sen "ulx slap" "* 0:10"Gives a player access to a command. The example allows slap with 0–10 damage.
ulx userallowid <ID> <command> [access_tag]ulx userallowid STEAM_0:1:123456 "ulx kick"Grants command access by SteamID, IP or UniqueID.
ulx userdeny <player> <command> [revoke]ulx userdeny Sen "ulx kick"Blocks a command even if the group allows it. Add 1 to clear the personal rule and use the group's permissions.
ulx userdenyid <ID> <command> [revoke]ulx userdenyid STEAM_0:1:123456 "ulx kick"Works like ulx userdeny, but accepts a SteamID, IP or UniqueID.
ulx usermanagementhelpulx usermanagementhelpShows help on groups and permissions.

Player and Map Management ​

CommandExampleDescription
ulx ban <player> [minutes] [reason]ulx ban Sen 60 "Repeated spam"Bans the player for the given number of minutes. With no duration or with 0, the ban is permanent.
ulx banid <SteamID> [minutes] [reason]ulx banid STEAM_0:1:123456 60 "Repeated spam"Bans by SteamID, including offline players. Duration is in minutes, as with ulx ban.
ulx unban <SteamID>ulx unban STEAM_0:1:123456Unbans a SteamID.
ulx kick <player> [reason]ulx kick Sen "Please change your nickname"Kicks the player with the given reason.
ulx map <map> [gamemode]ulx map gm_construct sandboxChanges the map. The second argument sets the gamemode.
ulx noclip [player]ulx noclip SenToggles free flight through objects.
ulx spectate <player>ulx spectate SenLets you spectate the player.
ulx who [SteamID]ulx whoLists online players and their groups. Add a SteamID to look up one player.

Utility Commands ​

CommandExampleDescription
ulx helpulx helpLists your available commands and their arguments.
ulx versionulx versionDisplays the installed ULX and ULib versions.
ulx debuginfoulx debuginfoOutputs server, player and settings information for troubleshooting.
ulx resettodefaults [FORCE]ulx resettodefaultsResets ULX and ULib, including groups, permissions and bans. Add FORCE to confirm, then change the map.

Chat Management ​

CommandExampleDescription
ulx asay <message>ulx asay "Please check the spawn area"Sends a message to the admins currently online.
ulx csay <message>ulx csay "Restart in 5 minutes"Displays a message in the center of every player's screen.
ulx tsay <message>ulx tsay "Please read the server rules"Sends a message to everyone in text chat.
ulx psay <player> <message>ulx psay Sen "Please contact an admin"Sends a private message to a player.
ulx gag <player>ulx gag SenDisables voice chat for the player.
ulx ungag <player>ulx ungag SenRe-enables voice chat.
ulx mute <player>ulx mute SenDisables text chat for the player.
ulx unmute <player>ulx unmute SenRe-enables text chat.
ulx gimp <player>ulx gimp SenReplaces the player's messages with phrases from the ULX list.
ulx ungimp <player>ulx ungimp SenStops replacing the player's messages.
ulx thetimeulx thetimeShows the current server time.

Voting ​

CommandExampleDescription
ulx vote <question> <option1> <option2> [more_options]ulx vote "Change the map?" "Yes" "No"Starts a vote with 2–10 answer options.
ulx stopvoteulx stopvoteStops the current vote.
ulx voteban <player> [minutes] [reason]ulx voteban Sen 60 "Repeated spam"Starts a ban vote. Duration is in minutes: 1440 (one day) by default, or 0 for a permanent ban.
ulx votekick <player> [reason]ulx votekick Sen "Repeated spam"Starts a vote to kick the player.
ulx votemap [map]ulx votemap gm_constructVotes for a map. Without an argument, lists available maps. The map changes when enough votes are cast.
ulx votemap2 <map> [more_maps]ulx votemap2 gm_construct gm_flatgrassStarts a map vote with 1–10 maps.
ulx vetoulx vetoCancels the map change following a successful ulx votemap.

Teleportation ​

CommandExampleDescription
ulx bring <player>ulx bring SenTeleports the player to you.
ulx goto <player>ulx goto SenTeleports you to the player.
ulx return [player]ulx return SenReturns the player to their position before the teleport.
ulx send <player> <destination_player>ulx send Sen KatieTeleports the first player to the second.
ulx teleport [player]ulx teleport SenTeleports the player where you are looking.

Run these commands in the game console.

CommandExampleDescription
ulx motdulx motdOpens the MOTD welcome window.
ulx menuulx menuOpens or closes the XGUI menu.
xgui [action]xgui showControls XGUI: show opens it, hide closes it, and toggle switches its state.
xgui fban <player>xgui fban SenFreezes the player and opens the ban window with their details.
xgui xban [player]xgui xban SenOpens the ban window. Fills in player details if a name is given.

Article contributors

Loading contributors...