<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eivor</title>
    <description>The latest articles on DEV Community by Eivor (@theodevv).</description>
    <link>https://dev.to/theodevv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1071272%2Ffef8b282-76a2-4eba-b9c5-a3e1fcba49b2.png</url>
      <title>DEV Community: Eivor</title>
      <link>https://dev.to/theodevv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/theodevv"/>
    <language>en</language>
    <item>
      <title>Crée un serveur FiveM sur VPS Linux</title>
      <dc:creator>Eivor</dc:creator>
      <pubDate>Tue, 25 Apr 2023 07:26:50 +0000</pubDate>
      <link>https://dev.to/theodevv/cree-un-serveur-fivem-2b30</link>
      <guid>https://dev.to/theodevv/cree-un-serveur-fivem-2b30</guid>
      <description>&lt;p&gt;Dans ce tutoriel nous allons vous guider dans la mise en place de votre serveur FiveM sur votre serveur VPS. Ce tuto se concentre sur la version Linux pour Debian.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Installation des dépendances&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install wget xz-utils git nano
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Installation du serveur FiveM&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir -p /home/fxserver
cd /home/fxserver
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Maintenant que nous avons préparé le terrain, commençons par récupérer les fichiers nécessaires. Rendez-vous sur la page suivante et copiez le lien du bouton &lt;strong&gt;&lt;em&gt;Latest Recommended&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/5848-4f71128ee48b07026d6d7229a60ebc5f40f2b9db/fx.tar.xz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Maintenant on va extraire le contenu de l'archive :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tar -xvf fx.tar.xz &amp;amp;&amp;amp; rm fx.tar.xz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nous allons maintenant récupérer les données citizens avec la commande git.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/citizenfx/cfx-server-data.git /home/fxserver resources
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Configuration du serveur FiveM&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Maintenant nous allons créer le fichier de configuration principal &lt;strong&gt;&lt;em&gt;server.cfg&lt;/em&gt;&lt;/strong&gt; :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;touch /home/fxserver/server.cfg
nano /home/fxserver/server.cfg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pour quitter l'éditeur et sauvegarder votre modification, appuyez sur les touches &lt;code&gt;CTRL + X&lt;/code&gt; et validez.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Only change the IP if you're using a server with multiple network interfaces, otherwise change the port only.
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure rconlog
ensure scoreboard

# This allows players to use scripthook-based plugins such as the legacy Lambda Menu.
# Set this to 1 to allow scripthook. Do note that this does _not_ guarantee players won't be able to use external plugins.
sv_scriptHookAllowed 0

# Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password "YOURPASSWORD"
#rcon_password ""

# A comma-separated list of tags for your server.
# For example:
# - sets tags "drifting, cars, racing"
# Or:
# - sets tags "roleplay, military, tanks"
sets tags "default"

# A valid locale identifier for your server's primary language.
# For example "en-US", "fr-CA", "nl-NL", "de-DE", "en-GB", "pt-BR"
sets locale "root-AQ" 
# please DO replace root-AQ on the line ABOVE with a real language! :)

# Set an optional server info and connecting banner image url.
# Size doesn't matter, any banner sized image will be fine.
#sets banner_detail "https://url.to/image.png"
#sets banner_connecting "https://url.to/image.png"

# Set your server's hostname
sv_hostname "FXServer, but unconfigured"

# Nested configs!
#exec server_internal.cfg

# Loading a server icon (96x96 PNG file)
#load_server_icon myLogo.png

# convars which can be used in scripts
set temp_convar "hey world!"

# Uncomment this line if you do not want your server to be listed in the server browser.
# Do not edit it if you *do* want your server listed.
#sv_master1 ""

# Add system admins
add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don't allow quit
add_principal identifier.fivem:1 group.admin # add the admin to the group

# Hide player endpoints in external log output.
sv_endpointprivacy true

# enable OneSync with default configuration (required for server-side state awareness)
onesync_enabled true

# Server player slot limit (must be between 1 and 32, unless using OneSync)
sv_maxclients 32

# Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)
# -&amp;gt; replace "" with the key
set steam_webApiKey ""

# License key for your server (https://keymaster.fivem.net)
sv_licenseKey changeme
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Générer une licence FiveM&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Pour fonctionner, votre serveur fivem nécessite une licence valide. Pour en créer une, rendez-vous ici: &lt;code&gt;https://keymaster.fivem.net/&lt;/code&gt; et générez votre licence.&lt;/p&gt;

&lt;p&gt;Une fois la licence générée, éditez le fichier de configuration. En bas du fichier, se trouve la variable &lt;code&gt;sv_licenceKey&lt;/code&gt;que vous devez éditer.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano /home/fxserver/server.cfg
# Editez - sv_licenseKey "licenseKeyGoesHere".
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Démarrer le serveur&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /home/fxserver
bash /home/fxserver/run.sh +exec /home/fxserver/server.cfg +set sv_enforceGameBuild 2802 ( changer le gamebuild ou enlever le )
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Et voila à présent je te donne rendez vous au prochain tutoriel pour en savoir plus sur le développement FiveM !&lt;/p&gt;

</description>
      <category>development</category>
      <category>gamedev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
