How to add Administrators and mods
Garry's Mod: Admin Mods
GMod has no built-in admin system worth using on a real server. The community standard is ULX (with its ULib library underneath), and for multi-server communities, Sourcebans++. This guide covers both. Complete Getting Started first.
ULX + ULib (the Standard)
ULX is the classic GMod admin mod: a menu, commands, and a group/permission system. It requires ULib underneath.
Installing
- Download ULib from
github.com/TeamUlysses/ulib. - Download ULX from
github.com/TeamUlysses/ulx. - Upload both to
garrysmod/addons/(each in its own folder). - Restart.
You can also add both to your Workshop collection instead of uploading manually; see Workshop and Fast Downloads.
ULX Commands
Use these in chat (with !) or the console (with ulx):
!menu Open the ULX admin menu !kick <name> Kick a player !ban <name> <minutes> <reason> Ban a player !noclip <name> Toggle noclip !cloak <name> Make a player invisible !god <name> Toggle god mode !slay <name> Kill a player !teleport <name> Teleport to a player !bring <name> Bring a player to you !gimp <name> Gag/comedic punishment !freeze <name> Freeze a player
Managing Admins and Groups
ULX uses groups (superadmin, admin, operator, user) with configurable permissions.
- Add admins through the in-game ULX menu (
!menu> Groups/Users), or - Edit
garrysmod/data/ulib/groups.txtandusers.txtdirectly
The default groups are a sensible starting point. Add your trusted staff to admin or superadmin, and customize what each group can do through the menu.
Sourcebans++ (Multi-Server Communities)
Sourcebans++ is a web-based ban and admin database. It is overkill for a single casual server but powerful for communities running several servers that need shared bans and a web admin portal.
What It Provides
- A web portal for managing bans, admins, and server groups
- Bans that apply across every server connected to the same database
- Ban appeals and a public ban list
- Admin management from the web instead of in-game
Requirements
- A MySQL database (use the panel Databases tab; see How to Create a Database)
- A web server to host the Sourcebans++ PHP portal
- The Sourcebans++ addon installed on each GMod server
High-Level Setup
- Create a MySQL database through the panel.
- Install the Sourcebans++ web portal on your web server and point it at the database.
- Install the Sourcebans++ GMod addon in
garrysmod/addons/and configure it with the database credentials. - Restart.
Sourcebans++ has detailed official documentation; follow it for the current install steps, since the web portal setup has several pieces. This is a larger project than ULX and is only worth it for multi-server setups.
Which Should I Use?
| ULX + ULib | Sourcebans++ | |
|---|---|---|
| Setup effort | Low | High |
| Single server | Ideal | Overkill |
| Multiple servers | Each server separate | Shared bans and admins |
| Web portal | No | Yes |
| Database required | No | Yes (MySQL) |
Most servers want ULX. Add Sourcebans++ only when you run multiple servers and need shared enforcement.
Common Issues
- ULX menu does not open: ULib is not installed, or loaded after ULX. Both must be in
garrysmod/addons/; ULib is the dependency. - Commands work for me but not other admins: They are not in an admin group. Add them via
!menuordata/ulib/groups.txt. - Sourcebans++ not connecting: Database credentials wrong, or the database is unreachable from the server. Verify the credentials from the panel Databases tab.
- Bans not shared across servers: Each server's Sourcebans++ addon must point at the same database.
What to Read Next
- Game Modes for the DarkRP and TTT servers you are administering
- Workshop and Fast Downloads to deliver ULX and other addons
- How to Create a Database for the MySQL that Sourcebans++ needs