<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=System%3A%3AconnectToServer</id>
	<title>System::connectToServer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=System%3A%3AconnectToServer"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=System::connectToServer&amp;action=history"/>
	<updated>2026-07-18T18:50:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=System::connectToServer&amp;diff=27529&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot;{{ClientsideJsFunction}} {{JSContainer|  === Required Params === *&#039;&#039;&#039;ip:&#039;&#039;&#039; {{RageType|string}} *&#039;&#039;&#039;port:&#039;&#039;&#039; {{RageType|number}} *&#039;&#039;&#039;sessionData:&#039;&#039;&#039; {{RageType|string}} (Optional)  === Return value === *&#039;&#039;&#039; {{RageType|void}} &#039;&#039;&#039;  == Syntax == &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; mp.system.connectToServer(ip, port, sessionData); &lt;/syntaxhighlight&gt;  == Example == &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; mp.system.connectToServer(&quot;127.0.0.1&quot;, 22005, &quot;playerAuthToken&quot;); &lt;/syntaxhi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=System::connectToServer&amp;diff=27529&amp;oldid=prev"/>
		<updated>2026-02-11T18:06:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ClientsideJsFunction}} {{JSContainer|  === Required Params === *&amp;#039;&amp;#039;&amp;#039;ip:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} *&amp;#039;&amp;#039;&amp;#039;port:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} *&amp;#039;&amp;#039;&amp;#039;sessionData:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} (Optional)  === Return value === *&amp;#039;&amp;#039;&amp;#039; {{RageType|void}} &amp;#039;&amp;#039;&amp;#039;  == Syntax == &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; mp.system.connectToServer(ip, port, sessionData); &amp;lt;/syntaxhighlight&amp;gt;  == Example == &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; mp.system.connectToServer(&amp;quot;127.0.0.1&amp;quot;, 22005, &amp;quot;playerAuthToken&amp;quot;); &amp;lt;/syntaxhi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
=== Required Params ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ip:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;port:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}}&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;sessionData:&amp;#039;&amp;#039;&amp;#039; {{RageType|string}} (Optional)&lt;br /&gt;
&lt;br /&gt;
=== Return value ===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039; {{RageType|void}} &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.system.connectToServer(ip, port, sessionData);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.system.connectToServer(&amp;quot;127.0.0.1&amp;quot;, 22005, &amp;quot;playerAuthToken&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If &amp;#039;&amp;#039;&amp;#039;sessionData&amp;#039;&amp;#039;&amp;#039; is provided, it will be available in:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.storage.sessionData&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
after connection completes.&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{System_functions_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>