
How to Ban a Player from a Garry's Mod Server
Nov 9, 2024
·4 min read
Sometimes it is incredibly useful to ban rowdy players from your GMod server. This article will cover how to kick and ban players from your server using ULX in-game commands.
Note
Make sure that the user you’re banning is not a superadmin on your server.
#Method 1: Using ULX
Before we start, ensure that you are set as an Administrator on your server. To do this, please refer to our guide on Installing ULX & ULIB Admin System to your Garry's Mod Server.
- Once you’ve set up your ULX Admin system, open the console in-game by pressing
~. - You can now enter any ULX commands.
| Syntax | Description |
|---|---|
ulx ban <player> [time (in minutes)] [reason] | Bans a player based off their username for an optional amount of time. |
ulx banid <steamid>[minutes, 0 for permanent] [reason] | Bans a player based off their SteamID for an optional amount of time. |
ulx unban <steamid/username> | Unbans a user based off their SteamID or username at the time of ban. |
- Click Submit to enter the command.
#Method 2: Banning In-Game
- Login to your server and open the in-game chat (by pressing
Y). - In the in-game chat, enter any of the following commands:
| Month | Savings |
|---|---|
!ban <player> [time (in minutes)][reason] | Bans a player based off their username for an optional amount of time. |
!banid <steamid>[time (in minutes)][reason] | Bans a player based off their SteamID for an optional amount of time. |
!unban <steamid/username> | Unbans a user based off their SteamID or username at the time of ban. |
- Press Enter on your keyboard to send the command.
If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php