Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

ULX and ULib: which does what

On a Garry's Mod dedicated server, nobody is an administrator at first, and the game alone only knows, besides ordinary players, the admin and superadmin ranks, with no real moderation commands. ULX fills that gap. It is free, its code is public, and it comes in two parts:

  • ULib is the library. It keeps the list of players and groups, checks who is allowed to run which command, and records bans. On its own, it provides no moderation commands.
  • ULX is the admin tool built on top of it: the commands (kick, ban, teleport, mute, change map, start a vote) and the in-game menu.

ULX does not start without ULib, and it needs the latest version: always install the two together, and update them together. If your server does not exist yet, start with the guide create a Garry's Mod server.

02

Installing ULX and ULib: Workshop or addons folder

Through the Workshop. ULib and ULX are published on the Steam Workshop under the IDs 557962238 (ULib) and 557962280 (ULX). Add both items to your server's Workshop collection: the server downloads them at startup and picks up their updates at each restart. The collection must be public or unlisted, otherwise the server cannot read it. It is declared in the launch line:

+host_workshop_collection 1234567890

Replace the number with the ID of your collection, the one at the end of its Steam address.

Through the addons folder. Download both archives from the project's public repositories (the Team Ulysses group), then extract them into garrysmod/addons. The classic trap is one folder too many: each addon must contain its lua folder directly, with no level in between. Once in place, you should find these files:

garrysmod/addons/ulib/lua/ulib/init.lua
garrysmod/addons/ulib/lua/autorun/ulib_init.lua
garrysmod/addons/ulx/lua/ulx/init.lua
garrysmod/addons/ulx/lua/ulib/modules/ulx_init.lua

If the archive extracted under another name (ulib-master, for example), rename the folders to ulib and ulx, in lowercase.

In both cases, do a full server restart. The project's documentation insists on it: a simple map change is not enough. To check, type ulx help in the server console: the list of commands should appear. If the console answers that the command is unknown, ULib is missing, a folder is nested wrongly, or the server was not really restarted.

Install only one copy of each: not ULX in the Workshop collection and in the addons folder.

03

Making yourself superadmin

As long as nobody has a rank, only the server console has every right. So that is where the first rank is given, not in the game. Join the server with your account, then type in its console:

ulx adduser "Pseudo" superadmin

ulx adduser only works on a connected player. Part of the name is enough if it matches a single player; the quotes are needed when the name contains a space. For someone who is not online, go through their SteamID:

ulx adduserid "STEAM_0:1:12345678" superadmin

Keep the quotes around the SteamID: without them, the console splits the identifier at the colons. The ulx who command shows connected players with their group, to check the result.

Once you are superadmin, everything is done from the game. Open the ULX menu with ulx menu in the game console, or !menu in chat. The handiest way is to bind it to a key:

bind m "ulx menu"

To remove a rank:

ulx removeuser "Pseudo"
ulx removeuserid "STEAM_0:1:12345678"

A superadmin can do anything, including sending a command to the server console (ulx rcon) or running Lua code (ulx luarun). Keep this rank for people you would trust with the server password.

04

Groups and permissions

ULib comes with four groups:

  • user: any player who belongs to no other group. Whatever you allow it, everyone gets;
  • operator: an intermediate group, which receives no moderation command at first. It is yours to fill;
  • admin: inherits from operator and receives the everyday commands (kick, ban, teleport, change map…);
  • superadmin: inherits from admin, has access to every command and manages the groups.

A group inherits the rights of the one it depends on. By default, an operator cannot target an admin, and an admin cannot target a superadmin: this is what ULX calls immunity.

For a team, create your own groups rather than handing out the admin rank. Example of a moderation group that can kick, ban for one day at most and teleport:

ulx addgroup moderateur operator
ulx groupallow moderateur "ulx kick"
ulx groupallow moderateur "ulx ban" "* 1:1440"
ulx groupallow moderateur "ulx goto"
ulx groupallow moderateur "ulx bring"
ulx setgroupcantarget moderateur "!%admin"
ulx adduser "Pseudo" moderateur
  • ulx addgroup creates the group; the second word is the group it inherits from (user if you give none);
  • ulx groupallow allows a command, written in quotes with its ulx prefix; ulx groupdeny removes it;
  • the optional third element limits the arguments, in the order of the command: here * leaves the choice of player open, and 1:1440 keeps the ban length between 1 and 1,440 minutes, which rules out a permanent ban (length 0);
  • ulx setgroupcantarget sets who the group can target: !%admin means "everyone except admins and above".

For an exception on a single person, ulx userallow and ulx userdeny do the same at player level. A denial set on a player wins over what their group allows. Groups themselves have no deny list: if a group has too many rights, split it in two.

All of this can also be set with the mouse, in the Groups tab of the menu. Groups and their rights are saved in garrysmod/data/ulib/groups.txt. Bans are stored in the server's SQLite database (garrysmod/sv.db), and since ULib 2.72 so are players and their personal rights: the old garrysmod/data/ulib/users.txt file is only read to carry its content over during the update. groups.txt and sv.db are the files to include in your backups. ulx usermanagementhelp prints the full help on groups.

05

The commands you use every day

Each command exists in two forms: ulx command in the console, !command in chat. The same actions are in the menu, player by player. Commands that start from your character (goto, bring, spectate) are run from the game, not from the server console.

ulx who
ulx kick "Pseudo" Spam micro
ulx ban "Pseudo" 1d Freekill
ulx banid "STEAM_0:1:12345678" 0 Triche
ulx unban "STEAM_0:1:12345678"
ulx goto "Pseudo"
ulx bring "Pseudo"
ulx return "Pseudo"
ulx spectate "Pseudo"
ulx mute "Pseudo"
ulx gag "Pseudo"
ulx jail "Pseudo" 120
ulx map rp_downtown_v4c_v2 darkrp
  • Sanctions: kick removes a player, ban bans a connected player, banid bans by SteamID a player who has already left (superadmin only by default), unban lifts the ban. The length is in minutes, 0 for a permanent ban; ULX also accepts 2h, 1d or 1w for hours, days or weeks. The rest of the line is the reason.
  • Movement: goto takes you to the player, bring brings them to you, return sends them back to where they were before the teleport, spectate puts you in their view, noclip lets you pass through walls.
  • Discipline: mute cuts a player's text chat, gag cuts their microphone, freeze holds them in place, jail locks them up for a number of seconds (0 for no limit), slay kills them.
  • Server: map changes the map, with the gamemode as a second argument if needed; votemap2, votekick and voteban start a public vote.
  • Messages: a chat message that starts with @ goes to the admin team (ulx asay), and !p sends a private message (ulx psay).

In place of a name, ULX understands a few shortcuts: ^ for yourself, * for everyone, %admin for the members of a group and of those that inherit from it, and ! in front to invert. ulx help gives the full list of commands you are allowed to use.

06

ULX with DarkRP, and the alternatives

With DarkRP. The gamemode ships with its own admin tool, FAdmin. The two can run together, but two menus and two lists of ranks quickly confuse a team: pick one. To keep ULX alone, set ["fadmin"] to true in the list of modules of the file lua/darkrp_config/disabled_defaults.lua of the darkrpmodification addon (see the guide create a DarkRP server). ULib makes its groups known to the rest of the server: a group that inherits from admin is seen as an administrator by addons that ask the game, and those that follow the common CAMI standard find your groups.

What exists besides ULX:

  • The game's own file: garrysmod/settings/users.txt lets you declare players as admin or superadmin by SteamID, with no addon at all. Enough for a Sandbox among friends, but it provides neither moderation commands nor custom groups.
  • FAdmin: already there on a DarkRP server, it covers the basics for a small team.
  • Paid tools, such as SAM: a more recent interface and extra features, for a purchase. Get them from their author, never as a copy.

Whatever the tool, run only one that manages ranks, and be wary of paid addons redistributed for free: many contain a backdoor whose first move is to give the superadmin rank to a stranger.

07

On a CloudFive server

On our Garry's Mod plans, the installation needs neither an archive nor a file transfer: everything starts from the server page, in the customer area.

  • ULX in one click: ULX and its ULib library install from the server page. The page also lists the addons present, to check there is no duplicate.
  • Console tab: this is the server console. Join the game, then type ulx adduser "Pseudo" superadmin there. Logs arrive live and commands keep their history.
  • Workshop tab: if you would rather go through your collection, paste its address; the title, the number of items and the size are shown before you apply it. In that case, do not install ULX a second time with the button.
  • Gamemode and map: DarkRP and the starting map are chosen on the same page.
  • Files and backups: the file editor opens garrysmod/data/ulib/groups.txt, and dated backups restore in one click if a change to the groups goes wrong.

You can also share access to the server page with your team, right by right, rather than giving the superadmin rank to everyone. Servers run in France on Ryzen 9 9950X, with Anti-DDoS Premium included, monthly and with no commitment. If you install Garry's Mod yourself, the manual method in this guide applies as is on a Ryzen VPS: see Garry's Mod on a Linux VPS. To compare plans, the guide best Garry's Mod host gives the criteria.

08

Frequently asked questions

How do I install ULX on a Garry's Mod server?

Install ULib and ULX together: either by adding both Workshop items (557962238 for ULib, 557962280 for ULX) to the server's collection, or by extracting both archives into garrysmod/addons. Then do a full server restart, a map change is not enough. At CloudFive, ULX installs in one click from the server page.

How do I make myself superadmin with ULX?

Join the server, then type in the server console (not the game console): ulx adduser followed by your name and superadmin. If you are not connected, use ulx adduserid with your SteamID in quotes. The menu then opens with ulx menu in the game console or !menu in chat.

Why is the ulx command unknown on my server?

Three causes come up: ULib is not installed although ULX depends on it, the archive was extracted with one folder too many (the lua folder must sit directly inside addons/ulx and addons/ulib), or the server was not fully restarted after the installation.

How do I create a rank with ULX?

With ulx addgroup followed by the group name and the group it inherits from, then ulx groupallow to allow it each command, written in quotes with its ulx prefix. ulx adduser then puts a connected player in that group. The same settings are available in the Groups tab of the menu.

How do I ban a player with ULX?

ulx ban followed by the name, the length in minutes and the reason, or !ban in chat. A length of 0 bans permanently, and ULX also accepts 2h, 1d or 1w. For a player who has already left, ulx banid takes their SteamID, and ulx unban lifts the ban.

What is an alternative to ULX on Garry's Mod?

On DarkRP, FAdmin comes with the gamemode. For a small server among friends, the game's settings/users.txt file is enough to declare admins, without moderation commands. There are also paid tools such as SAM. ULX remains free and the most widespread; what matters is running only one tool to manage ranks.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay