Configurer un serveur fivem gta
Exécution de FXServer
FXServer est le nom de la version actuelle du serveur CitizenFX. Cette page vous montre comment l'exécuter.
Les Liens utile :
NotePad : https://notepad-plus-plus.org/
atom: https://atom.io/
SublimeText : https://www.sublimetext.com/
apache sql xampp : https://www.apachefriends.org/fr/index.html
les fenêtres
Conditions préalables
- Visual C ++ Redistributable 2019 ou plus récent.
- Git pour assurer une installation correcte.
Installation
Créez un nouveau répertoire (par exemple
D:\FXServer\server
), il sera utilisé pour les binaires du serveur.Téléchargez la dernière version de la
master
branche pour Windows à partir du serveur d'artefacts .Extrayez la construction dans le répertoire créé précédemment.
3b. Utilisez n'importe quel outil d'archivage (tel que WinRAR ou 7-Zip).Clonez cfx-server-data dans un nouveau dossier en dehors du dossier binaires de votre serveur, par exemple
D:\FXServer\server-data
,.
4b.git clone https://github.com/citizenfx/cfx-server-data.git server-data
Créez un fichier server.cfg dans votre
server-data
dossier (copiez l' exemple de fichier server.cfg ci-dessous dans ce fichier).Générez une clé de licence sur https://keymaster.fivem.net .
Rendez vous sur se site http://steamcommunity.com/dev/apikey . une fois que vous avez votre clé vous mettez ce convars dans votre server.cfg en set steam_webApiKey "KEYS" bien sur en remplacent KEYS par la clé que vous avez recup sur steam
Définissez la clé de licence dans votre server.cfg à l'aide de
sv_licenseKey "licenseKeyGoesHere"
.Exécutez le serveur à partir du
server-data
dossier. Par exemple, dans une fenêtre d'invite de commande Windows simple (cmd.exe):
# 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)
# -> replace "" with the key
set steam_webApiKey ""
# License key for your server (https://keymaster.fivem.net)
sv_licenseKey changeme
D:\FXServer\server\resources
ensure es_extended
set mysql_connection_string "server=localhost;uid=root;password=root;database=essentialmode;charset=utf8mb4_danish_ci;sslmode=none"
# 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 mapmanagerensure chatensure spawnmanagerensure sessionmanagerensure fivemensure hardcapensure rconlogensure scoreboardensure es_extendedset mysql_connection_string "server=localhost;uid=root;password=root;database=essentialmode;charset=utf8mb4_danish_ci;sslmode=none"# 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 hostnamesv_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 scriptsset 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 adminsadd_ace group.admin command allow # allow all commandsadd_ace group.admin command.quit deny # but don't allow quitadd_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)# -> replace "" with the keyset steam_webApiKey "le steam dans le tuto en haut"# License key for your server (https://keymaster.fivem.net)sv_licenseKey la clé a changer dans le tutoriel tout en haut
0 Commentaires