<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Austin</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Austin"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/Austin"/>
	<updated>2026-06-04T02:32:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=9040</id>
		<title>Getting Started with Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=9040"/>
		<updated>2018-01-27T18:25:29Z</updated>

		<summary type="html">&lt;p&gt;Austin: /* Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This brief tutorial will show you how to run your server on both Windows and Linux distributions.&lt;br /&gt;
&lt;br /&gt;
By default, the server makes use of port 22005 UDP for server access and the port after (here 22006) for the HTTP server hosting the client packages for the clients to download from.&amp;lt;br&amp;gt;      &lt;br /&gt;
So make sure to have done the ports forwarding on your router process and have also unblocked the ports on your firewall before running the server. &lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
&#039;&#039;&#039;Basic Instructions:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Download the latest [https://cdn.rage.mp/client/updater.exe CLIENT]&lt;br /&gt;
&lt;br /&gt;
2. After you run the updater, it will have created a &#039;&#039;&#039;server-files&#039;&#039;&#039; folder.&lt;br /&gt;
&lt;br /&gt;
3. Launch &#039;&#039;&#039;server.exe&#039;&#039;&#039; and you&#039;re good to go. &lt;br /&gt;
&lt;br /&gt;
Your NodeJS packages and modes go in &amp;lt;code&amp;gt;packages/yourgamemodename&amp;lt;/code&amp;gt;. Your client code goes in &amp;lt;code&amp;gt;client_packages&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
You can edit your &#039;&#039;&#039;conf.json&#039;&#039;&#039; to setup which package you&#039;re going to use and the basic server settings.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
Verify the following requirements are installed:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;.NET Core 2.0&#039;&#039;&#039;: [https://www.microsoft.com/net/download/windows Download page for .NET]. &#039;&#039;&#039;Select Runtime&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VC2017&#039;&#039;&#039;: [https://aka.ms/vs/15/release/VC_redist.x64.exe Visual C++ 2017 Redist]&lt;br /&gt;
&lt;br /&gt;
=Linux=&lt;br /&gt;
&lt;br /&gt;
==Installing GCC 6==&lt;br /&gt;
===Debian, Ubuntu, and derivatives===&lt;br /&gt;
&lt;br /&gt;
====Ubuntu 16.04.x and older====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:ubuntu-toolchain-r/test&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install gcc-6 g++-6&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing the server==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Downloading server&lt;br /&gt;
cd /tmp&lt;br /&gt;
wget https://cdn.rage.mp/lin/ragemp-srv.tar.gz&lt;br /&gt;
# Extract the server files&lt;br /&gt;
tar -xzf ragemp-srv.tar.gz&lt;br /&gt;
mv ragemp-srv ~/ragemp-srv&lt;br /&gt;
# Run the server&lt;br /&gt;
cd ~/ragemp-srv&lt;br /&gt;
chmod +x server&lt;br /&gt;
./server&lt;br /&gt;
&lt;br /&gt;
# Firewall commands (iptables only) (dont forget to save the rule after adding it)&lt;br /&gt;
iptables -A INPUT -p udp --dport 22005 -j ACCEPT&lt;br /&gt;
iptables -A INPUT -p tcp --dport 22006 -j ACCEPT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setting up==&lt;br /&gt;
===Installing screen===&lt;br /&gt;
For running the server in background, we recommend using screen mainly for its ease of use&lt;br /&gt;
&lt;br /&gt;
====Debian based (Ubuntu &amp;amp; derivatives)====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====CentOS 6.x/7.x====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
yum install screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Starting the server===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -dmS GTASERVER -L bash -c &#039;cd ~/srv &amp;amp;&amp;amp; ./server&#039; &amp;amp;&lt;br /&gt;
&lt;br /&gt;
# Parameter explanation&lt;br /&gt;
# screen -dmS = starts a separate shell without directly opening an interface towards it (detached mode). The S param defines a session name for the newly created session, so that it is easier to manage in the future.&lt;br /&gt;
# screen -L = basically logs whatever error that is shown by the server through the separate shell into a file for easier reference in the future.&lt;br /&gt;
# !IMPORTANT!&lt;br /&gt;
# Log output will be saved as screenlog._number_ in the server directory.&lt;br /&gt;
# &amp;amp;: IS IMPORTANT IF YOU WANT TO TERMINATE THE PROCESS GRACEFULLY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stopping the server===&lt;br /&gt;
To stop the server, there&#039;s usually two ways to do that, one that we call a &#039;&#039;&#039;graceful&#039;&#039;&#039; shutdown that sends the server a signal for termination and the other, well, a &#039;&#039;&#039;crash&#039;&#039;&#039; since it does not allow the code to run through the termination process correctly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RECOMMENDED:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
kill $(ps h --ppid $(screen -ls | grep GTASERVER | cut -d. -f1) -o pid)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOT RECOMMENDED:&#039;&#039;&#039; It does not shut down the server gracefully&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -S GTASERVER -X quit &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;/div&gt;</summary>
		<author><name>Austin</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setColorRGB&amp;diff=5991</id>
		<title>Vehicle::setColorRGB</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setColorRGB&amp;diff=5991"/>
		<updated>2017-09-23T17:36:36Z</updated>

		<summary type="html">&lt;p&gt;Austin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function used for set vehicle RGB body color.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
void vehicle.setColourRGB(int r1, int g1, int b1, int r2, int g2, int b2);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&#039;&#039;&#039;r1:&#039;&#039;&#039; Primary red color in diapason 0 - 255.&lt;br /&gt;
*&#039;&#039;&#039;g1:&#039;&#039;&#039; Primary green color in diapason 0 - 255.&lt;br /&gt;
*&#039;&#039;&#039;b1:&#039;&#039;&#039; Primary blue color in diapason 0 - 255.&lt;br /&gt;
*&#039;&#039;&#039;r2:&#039;&#039;&#039; Secondary red color in diapason 0 - 255.&lt;br /&gt;
*&#039;&#039;&#039;g2:&#039;&#039;&#039; Secondary green color in diapason 0 - 255.&lt;br /&gt;
*&#039;&#039;&#039;b2:&#039;&#039;&#039; Secondary blue color in diapason 0 - 255.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
no example, ez&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
//todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_block}}&lt;/div&gt;</summary>
		<author><name>Austin</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::getColorRGB&amp;diff=5990</id>
		<title>Vehicle::getColorRGB</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::getColorRGB&amp;diff=5990"/>
		<updated>2017-09-23T17:36:08Z</updated>

		<summary type="html">&lt;p&gt;Austin: Created page with &amp;quot;This function used to get the vehicle RGB body color. &amp;#039;&amp;#039;&amp;#039;Returns null if never set explicitly&amp;#039;&amp;#039;&amp;#039;.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; Array vehicle.getColourRGB(in...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function used to get the vehicle RGB body color. &#039;&#039;&#039;Returns null if never set explicitly&#039;&#039;&#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;
Array vehicle.getColourRGB(int slot);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&#039;&#039;&#039;slot:&#039;&#039;&#039; The color you want to get. (valid is 0 or 1)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let primaryColor = vehicle.getColourRGB(0);&lt;br /&gt;
let secondaryColor = vehicle.getColourRGB(1); &lt;br /&gt;
// primaryColor output: [ 255, 0, 0 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_block}}&lt;/div&gt;</summary>
		<author><name>Austin</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setColorRGB&amp;diff=5989</id>
		<title>Vehicle::setColorRGB</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setColorRGB&amp;diff=5989"/>
		<updated>2017-09-23T17:34:52Z</updated>

		<summary type="html">&lt;p&gt;Austin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function used to get the vehicle RGB body color. &#039;&#039;&#039;Returns null if never set explicitly&#039;&#039;&#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;
Array vehicle.getColourRGB(int slot);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&#039;&#039;&#039;slot:&#039;&#039;&#039; The color you want to get. (valid is 0 or 1)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let primaryColor = vehicle.getColourRGB(0);&lt;br /&gt;
let secondaryColor = vehicle.getColourRGB(1); &lt;br /&gt;
// primaryColor output: [ 255, 0, 0 ]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_block}}&lt;/div&gt;</summary>
		<author><name>Austin</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setColorRGB&amp;diff=5988</id>
		<title>Vehicle::setColorRGB</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setColorRGB&amp;diff=5988"/>
		<updated>2017-09-23T17:31:13Z</updated>

		<summary type="html">&lt;p&gt;Austin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function used to get the vehicle RGB body color.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Object vehicle.getColourRGB(int slot);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&#039;&#039;&#039;slot:&#039;&#039;&#039; The color you want to get. (valid is 0 or 1)&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let primaryColor = vehicle.getColourRGB(0);&lt;br /&gt;
let secondaryColor = vehicle.getColourRGB(1); &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_block}}&lt;/div&gt;</summary>
		<author><name>Austin</name></author>
	</entry>
</feed>