Server Browser Rules: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
==Setting & Getting==
==Setting & Getting==


These ''rules'' can be defined and obtained using these two server-side functions:
These ''rules'' can be set in your MTA Server's configuration file (mtaserver.conf):
 
<syntaxhighlight lang="xml">
<!-- The rule parameters are optional settings that the server will make public for the server browser/list.
A brief description of the server. -->
<rule name="description" value="" />
 
<!-- A comma separated list of languages that the server supports (e.g. en). -->
<rule name="languages" value="" />
 
<!-- A comma separated list of tags that describe the server (e.g. freeroam,roleplay). -->
<rule name="tags" value="" />
 
<!-- The URL of the server's website. -->
<rule name="website_url" value="" />
 
<!-- A social media URL #1 (e.g. Discord). -->
<rule name="social_url_1" value="" />
 
<!-- A social media URL #2 (e.g. YouTube). -->
<rule name="social_url_2" value="" />
 
<!-- A social media URL #3 (e.g. Facebook). -->
<rule name="social_url_3" value="" />
</syntaxhighlight>
 
They can also be defined and obtained using these two server-side functions:


<ul>
<ul>
Line 19: Line 45:


<ul>
<ul>
<li>[https://github.com/multitheftauto/mtasa-blue/pull/3761 github.com/multitheftauto/mtasa-blue PR #3761]</li>
<li>[https://github.com/multitheftauto/mtasa-blue/pull/3761 github.com/multitheftauto/mtasa-blue: PR #3761]</li>
<li>[https://en.wikipedia.org/wiki/The_All-Seeing_Eye wikipedia.org: The All-Seeing Eye]</li>
<li>[https://en.wikipedia.org/wiki/The_All-Seeing_Eye wikipedia.org: The All-Seeing Eye]</li>
<li>[https://int64.org/docs/gamestat-protocols/ase.html int64.org: All-Seeing Eye Protocol]</li>
<li>[https://int64.org/docs/gamestat-protocols/ase.html int64.org: All-Seeing Eye Protocol]</li>
</ul>
</ul>

Revision as of 11:24, 3 January 2025

Information

"Server Browser Rules" are key-value string pairs defined server-side.

These values are automatically transmitted/announced/broadcasted by your MTA Server using the ASE (All-Seeing Eye) protocol, when queried on the main UDP Port (default 22003).

This data is to be received and parsed by MTA Clients (in the Server Browser) to display the list of online MTA servers with custom information for each server.

Setting & Getting

These rules can be set in your MTA Server's configuration file (mtaserver.conf):

<!-- The rule parameters are optional settings that the server will make public for the server browser/list.
	 A brief description of the server. -->
<rule name="description" value="" />

<!-- A comma separated list of languages that the server supports (e.g. en). -->
<rule name="languages" value="" />

<!-- A comma separated list of tags that describe the server (e.g. freeroam,roleplay). -->
<rule name="tags" value="" />

<!-- The URL of the server's website. -->
<rule name="website_url" value="" />

<!-- A social media URL #1 (e.g. Discord). -->
<rule name="social_url_1" value="" />

<!-- A social media URL #2 (e.g. YouTube). -->
<rule name="social_url_2" value="" />

<!-- A social media URL #3 (e.g. Facebook). -->
<rule name="social_url_3" value="" />

They can also be defined and obtained using these two server-side functions:

Useful Information