ServerRules: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 16: Line 16:
{| class="wikitable"
{| class="wikitable"
!Rule Name
!Rule Name
!Description
!Feature
|-
|-
|Website
|Website

Latest revision as of 03:55, 29 January 2026

General Information

GTA Connected provides the ability for servers to broadcast custom pieces of information (called "rules") ... These are shown in launcher in the lower box (if enabled) and in the data returned by the server when queried.

LauncherServerRules.png


Using Rules

  • Rules can be added in two ways: using the server.xml via the <rule> tag or using the server-side scripting functions server.setRule and server.getRule.
  • Setting a rule's value to null will delete the rule. Server rules are case sensitive so for example, "test" and "Test" will display as separate rules.
  • Server.xml Example: <rule name="Owner" value="Your_Name" />
  • Scripting Example: server.setRule("Owner", "Your_Name")

Rules with Extra Features

There are some rules that can be used to take advantage of extra features:

Rule Name Feature
Website Setting a website will take users to the URL provided in their default browser when they choose "Visit Website" when right-clicking on your server in the launcher
Discord Setting a discord URL will open the invite link in the browser (which will connect to the discord app if it's installed) by right-clicking on the discord line in the rules section and choosing "Visit Website"