mkdir /home/username/FXServer/server), this will be used for the server binaries.master branch build for Linux from the artifacts server(copy the URL for the latest server version and use wget <url> to download it).cd /home/username/FXServer/server && tar xf fx.tar.xz (you need to have xz installed, on Debian/Ubuntu this is in the xz-utils package).git clone https://github.com/citizenfx/cfx-server-data.git /home/username/FXServer/server-dataserver-data folder (copy the example server.cfg file below into that file).server.cfg using sv_licenseKey "licenseKeyGoesHere".server-data folder.bash /home/username/FXServer/server/run.sh +exec server.cfgAn example server.cfg follows.
# 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
# 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 If you liked this one, we recommend our effortless LAMP stack tutorials:
Or read more of our most read:
How To Install A FiveM Server On Windows
MySQL: The Most Popular Open-Source Database
As IT environments grow, managing hundreds or even thousands of systems manually become difficult and…
In this article, we'll discuss the purpose of a network monitoring system, its relationship with…
A distributed search and analytics engine (e.g., Elasticsearch Software) is a system designed to store,…
Grafana is an open-source analytics and monitoring platform designed to visualize time-series data through interactive…
Redis (Remote Dictionary Server) is an open-source, in-memory data structure store used as a database,…
The Apache HTTP Server, commonly referred to as Apache, is one of the world’s most…
This website uses cookies.
View Comments
thank you