<?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=Fright</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=Fright"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/Fright"/>
	<updated>2026-08-12T00:05:53Z</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=16706</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=16706"/>
		<updated>2018-12-22T12:23:25Z</updated>

		<summary type="html">&lt;p&gt;Fright: /* Setting up server */&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;
=Bridge=&lt;br /&gt;
The following tutorial is found on [https://wiki.gtanet.work/index.php?title=Setting_up_the_Bridge_on_Linux/Windows Setting up the Bridge on Linux/Windows].&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
For a hassle-free installation and operation, it is recommended to have the latest VC Redist.&lt;br /&gt;
&lt;br /&gt;
[https://aka.ms/vs/15/release/VC_redist.x64.exe Microsoft Visual C++ Redistributable 2017]&lt;br /&gt;
&lt;br /&gt;
==Setting up the server==&lt;br /&gt;
1. Download the latest [https://cdn.rage.mp/client/updater.exe updater.exe].&lt;br /&gt;
&lt;br /&gt;
2. Run the downloaded &#039;&#039;&#039;updater.exe&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
3. Launch &#039;&#039;&#039;server.exe&#039;&#039;&#039; and you should be able to connect to it. &lt;br /&gt;
&lt;br /&gt;
=Linux=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
===Ubuntu===&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 libstdc++6&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Debian===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo &#039;deb http://httpredir.debian.org/debian testing main contrib non-free&#039; &amp;gt; /etc/apt/sources.list&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get install -y -t testing gcc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setting up server==&lt;br /&gt;
This bash snippet should automate the server installation.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Downloading server&lt;br /&gt;
wget https://cdn.rage.mp/lin/ragemp-srv-036.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Extract the server files&lt;br /&gt;
tar -xzf ragemp-srv-037.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Accessing the directory&lt;br /&gt;
cd ragemp-srv&lt;br /&gt;
&lt;br /&gt;
# Set executable permission&lt;br /&gt;
chmod +x server&lt;br /&gt;
&lt;br /&gt;
# Run the server&lt;br /&gt;
./server&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing screen (Optional)==&lt;br /&gt;
For running the server in the 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;
There&#039;s usually two ways to stop the server; 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;br /&gt;
==Linux==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22&#039; not found (required by ./server)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure GCC/G++ 6 or newer is installed, follow the [[Getting_Started_with_Server#Prerequisite|Prerequisite]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=8083</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=8083"/>
		<updated>2017-12-24T16:10:59Z</updated>

		<summary type="html">&lt;p&gt;Fright: /* Installing the server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&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 so make sure to have done the port forwarding on your router process and have also unblocked the port on your firewall before running the server.&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Troubleshooting ==&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>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=8082</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=8082"/>
		<updated>2017-12-24T16:10:45Z</updated>

		<summary type="html">&lt;p&gt;Fright: /* Installing the server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&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 so make sure to have done the port forwarding on your router process and have also unblocked the port on your firewall before running the server.&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Troubleshooting ==&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-server ~/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>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=8081</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=8081"/>
		<updated>2017-12-24T16:09:58Z</updated>

		<summary type="html">&lt;p&gt;Fright: /* Installing the server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&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 so make sure to have done the port forwarding on your router process and have also unblocked the port on your firewall before running the server.&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Troubleshooting ==&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-server.tar.gz&lt;br /&gt;
mv ragemp-server ~/ragemp-server&lt;br /&gt;
# Run the server&lt;br /&gt;
cd ~/ragemp-server&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>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=8080</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=8080"/>
		<updated>2017-12-24T16:08:43Z</updated>

		<summary type="html">&lt;p&gt;Fright: /* Installing the server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&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 so make sure to have done the port forwarding on your router process and have also unblocked the port on your firewall before running the server.&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Troubleshooting ==&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-server.tar.gz&lt;br /&gt;
# Run the server&lt;br /&gt;
cd ragemp-server&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>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=8079</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=8079"/>
		<updated>2017-12-24T15:57:35Z</updated>

		<summary type="html">&lt;p&gt;Fright: /* Installing the server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&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 so make sure to have done the port forwarding on your router process and have also unblocked the port on your firewall before running the server.&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Troubleshooting ==&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;
tar -xzf ragemp-server.tar.gz&lt;br /&gt;
cd ragemp-server&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>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=8078</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=8078"/>
		<updated>2017-12-24T15:56:52Z</updated>

		<summary type="html">&lt;p&gt;Fright: Update server wget url to the new 0.3.2 RC-1-4 path&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&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 so make sure to have done the port forwarding on your router process and have also unblocked the port on your firewall before running the server.&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
== Troubleshooting ==&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;
mkdir ~/srv&lt;br /&gt;
mv server ~/srv&lt;br /&gt;
cd ~/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>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=7779</id>
		<title>Key::bind</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=7779"/>
		<updated>2017-11-28T10:32:01Z</updated>

		<summary type="html">&lt;p&gt;Fright: Changed word &amp;quot;Int&amp;quot; to &amp;quot;Number&amp;quot; for semantic reasons, as this is JavaScript.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function binds the key .&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of key (Number).&lt;br /&gt;
* &#039;&#039;&#039;keyhold&#039;&#039;&#039; - call function as long as key is held pressed? (Bool)&lt;br /&gt;
* &#039;&#039;&#039;handler&#039;&#039;&#039; - function-handler.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example calling server event.&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// 113 is the F2 key code&lt;br /&gt;
mp.keys.bind(113, true, function() {&lt;br /&gt;
    mp.events.callRemote(&#039;keypress:F2&#039;); // Calling server event &amp;quot;keypress:F2&amp;quot;&lt;br /&gt;
    mp.gui.chat.push(&#039;F2 key is pressed. This message will be shown until you release the key, because &amp;quot;keyhold&amp;quot; is true.&#039;);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Keys::isUp&amp;diff=7778</id>
		<title>Keys::isUp</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Keys::isUp&amp;diff=7778"/>
		<updated>2017-11-27T19:46:28Z</updated>

		<summary type="html">&lt;p&gt;Fright: Created page with &amp;quot;Returns true if the key specific is not pressed. Otherwise, returns false.  ==Parameters== * &amp;#039;&amp;#039;&amp;#039;keycode&amp;#039;&amp;#039;&amp;#039; - code of the key (Number).  ==Example== An interval that runs every...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns true if the key specific is not pressed. Otherwise, returns false.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of the key (Number).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
An interval that runs every half-second and outputs the state of the F2 key (pressed or not).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
setInterval(() =&amp;gt; {&lt;br /&gt;
    if (mp.keys.isUp(112) === true) { // 112 is the key code for F2&lt;br /&gt;
        mp.gui.chat.push(&#039;F2 key is not pressed!&#039;);&lt;br /&gt;
    } else {&lt;br /&gt;
        mp.gui.chat.push(&#039;F2 key is pressed!&#039;);&lt;br /&gt;
    }&lt;br /&gt;
}, 500);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Keys::isDown&amp;diff=7777</id>
		<title>Keys::isDown</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Keys::isDown&amp;diff=7777"/>
		<updated>2017-11-27T19:44:57Z</updated>

		<summary type="html">&lt;p&gt;Fright: Add &amp;quot;See also&amp;quot; section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns true if the key specific is pressed. Otherwise, returns false.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of the key (Number).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
An interval that runs every half-second and outputs the state of the F2 key (pressed or not).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
setInterval(() =&amp;gt; {&lt;br /&gt;
    if (mp.keys.isDown(112) === true) { // 112 is the key code for F2&lt;br /&gt;
        mp.gui.chat.push(&#039;F2 key is pressed!&#039;);&lt;br /&gt;
    } else {&lt;br /&gt;
        mp.gui.chat.push(&#039;F2 key is not pressed!&#039;);&lt;br /&gt;
    }&lt;br /&gt;
}, 500);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Keys::isDown&amp;diff=7776</id>
		<title>Keys::isDown</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Keys::isDown&amp;diff=7776"/>
		<updated>2017-11-27T19:44:33Z</updated>

		<summary type="html">&lt;p&gt;Fright: Created page with &amp;quot;Returns true if the key specific is pressed. Otherwise, returns false.  ==Parameters== * &amp;#039;&amp;#039;&amp;#039;keycode&amp;#039;&amp;#039;&amp;#039; - code of the key (Number).  ==Example== An interval that runs every hal...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns true if the key specific is pressed. Otherwise, returns false.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of the key (Number).&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
An interval that runs every half-second and outputs the state of the F2 key (pressed or not).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
setInterval(() =&amp;gt; {&lt;br /&gt;
    if (mp.keys.isDown(112) === true) { // 112 is the key code for F2&lt;br /&gt;
        mp.gui.chat.push(&#039;F2 key is pressed!&#039;);&lt;br /&gt;
    } else {&lt;br /&gt;
        mp.gui.chat.push(&#039;F2 key is not pressed!&#039;);&lt;br /&gt;
    }&lt;br /&gt;
}, 500);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=7775</id>
		<title>Key::bind</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=7775"/>
		<updated>2017-11-27T19:36:09Z</updated>

		<summary type="html">&lt;p&gt;Fright: Better example that presents the new &amp;quot;keyhold&amp;quot; boolean parameter.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function binds the key .&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of key (Int).&lt;br /&gt;
* &#039;&#039;&#039;keyhold&#039;&#039;&#039; - call function as long as key is held pressed? (Bool)&lt;br /&gt;
* &#039;&#039;&#039;handler&#039;&#039;&#039; - function-handler.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example calling server event.&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// 113 is the F2 key code&lt;br /&gt;
mp.keys.bind(113, true, function() {&lt;br /&gt;
    mp.events.callRemote(&#039;keypress:F2&#039;); // Calling server event &amp;quot;keypress:F2&amp;quot;&lt;br /&gt;
    mp.gui.chat.push(&#039;F2 key is pressed. This message will be shown until you release the key, because &amp;quot;keyhold&amp;quot; is true.&#039;);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=7774</id>
		<title>Key::bind</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Key::bind&amp;diff=7774"/>
		<updated>2017-11-27T19:31:48Z</updated>

		<summary type="html">&lt;p&gt;Fright: Add definition for unknown parameter &amp;quot;bool0&amp;quot;.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function binds the key .&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;keycode&#039;&#039;&#039; - code of key (Int).&lt;br /&gt;
* &#039;&#039;&#039;keyhold&#039;&#039;&#039; - call function as long as key is held pressed? (Bool)&lt;br /&gt;
* &#039;&#039;&#039;handler&#039;&#039;&#039; - function-handler.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example calling server event.&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #AE4040; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// 0x12 is a Alt keycode&lt;br /&gt;
mp.keys.bind(0x12,true,function(){&lt;br /&gt;
    mp.events.callRemote(&#039;keypress:Alt&#039;); // Calling server event &amp;quot;keypress:Alt&amp;quot;&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{KeyBinding_function_c}}&lt;/div&gt;</summary>
		<author><name>Fright</name></author>
	</entry>
</feed>