Garry's Mod

Garry's Mod

Not enough ratings
Server MOTD Support
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
4.534 KB
16 Apr, 2020 @ 8:35pm
30 Apr, 2020 @ 7:30pm
2 Change Notes ( view )

Subscribe to download
Server MOTD Support

In 4 collections by wesl-ee
Shelter GMod
90 items
Shelter ttt
19 items
Weekly Nightclub & TTT "Club Howler"
56 items
GYW Streamstage
12 items
Description
Message of the Day Support (Servers)

This add-on enables a custom "message of the day" to be displayed to users upon connecting to the server. The MOTD should be an HTML or text file placed in cfg/motd.txt up to one megabyte in size. Files over one megabyte are not guaranteed to be rendered correctly by the client. This supports resolutions down to 640x480 so expect it to work even if you're running GMod on your toaster.

Using the MOTD

Download this add-on from the Steam Workshop and write a MOTD (or copy one of the thousand examples out there) and place it in cfg/motd.txt. You should only really use this if you run a server; there are no dependencies for this add-on and it is entirely self-contained, no need to write a website or host a webpage just to display your MOTD.

Below is an example of an HTML message of the day:

<!DOCTYPE HTML> <html> <head><style> body { font-family: "Meiryo", "MS PGothic", "sans-serif"; color: white } h1, h2 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif } </style><head> <body> <h1>Welcome to the server!</h1> <p>This is the default MOTD; if you are the server op then you probably want to change this by creating a file at <code>cfg/motd.txt</code> and putting your own text or HTML MOTD. Here are some things you should probably include: <ul> <li>Name of the server</li> <li>Basic rules</li> <li>Overview / explanation of the gamemode (if uncommon)</li> <li>Names / e-mails of admins who can help</li> <li>Link to an official website (if applicable)</li> </ul> <p>Other than that, you're free to do whatever you want however you want; hell, you can even run Javascript in here. The code isn't licensed so you can do anything just don't re-upload it without permission kthnx. If you're using this add-on and like it (or want to request a feature!) send me an e-mail (yumi@prettyboytellem.com) or you can message me via Steam</p> <p>This project is also hosted on so you can browse the source freely and raise an issue / contribute a fix if you find any bugs!</p> </body> </html>

Contributing / Source code

All development of this add-on is done on the Github page for this project[github.com] so all issues / feature requests should be submitted there by creating a new issue. Pull requests are respected and are actually very helpful in developing / maintaining this project.