{"id":64,"date":"2020-01-25T04:43:30","date_gmt":"2020-01-25T04:43:30","guid":{"rendered":"https:\/\/serverhub.com\/kb\/?p=64"},"modified":"2020-01-25T04:43:31","modified_gmt":"2020-01-25T04:43:31","slug":"how-to-install-a-fivem-server-on-windows","status":"publish","type":"post","link":"https:\/\/serverhub.com\/kb\/how-to-install-a-fivem-server-on-windows\/","title":{"rendered":"How To Install a FiveM Server on Windows"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"windows\">Windows<a href=\"https:\/\/docs.fivem.net\/docs\/server-manual\/setting-up-a-server\/#windows\"><\/a><\/h2>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<a href=\"https:\/\/docs.fivem.net\/docs\/server-manual\/setting-up-a-server\/#prerequisites\"><\/a><\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/aka.ms\/vs\/16\/release\/VC_redist.x64.exe\">Visual C++ Redistributable 2019<\/a>&nbsp;or newer.<\/li><li><a href=\"https:\/\/git-scm.com\/download\/win\">Git<\/a>&nbsp;to assure a correct installation.<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"installation\">Installation<a href=\"https:\/\/docs.fivem.net\/docs\/server-manual\/setting-up-a-server\/#installation\"><\/a><\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>Create a new directory (for example&nbsp;<code>D:\\FXServer\\server<\/code>), this will be used for the server binaries.<\/li><li>Download the latest&nbsp;<code>master<\/code>&nbsp;branch build for Windows from the&nbsp;<a href=\"https:\/\/runtime.fivem.net\/artifacts\/fivem\/build_server_windows\/master\/\">artifacts server<\/a>.<\/li><li>Extract the build into the directory previously created.<br>3b. Use any archiving tool (such as WinRAR or 7-Zip).<\/li><li>Clone&nbsp;<a href=\"https:\/\/github.com\/citizenfx\/cfx-server-data\">cfx-server-data<\/a>&nbsp;in a new folder outside of your server binaries folder, for example,&nbsp;<code>D:\\FXServer\\server-data<\/code>.<br>4b.&nbsp;<code>git clone https:\/\/github.com\/citizenfx\/cfx-server-data.git server-data<\/code><\/li><li>Make a&nbsp;<strong>server.cfg<\/strong>&nbsp;file in your&nbsp;<code>server-data<\/code>&nbsp;folder (copy the&nbsp;<a href=\"https:\/\/docs.fivem.net\/docs\/server-manual\/setting-up-a-server\/#servercfgexample\">example server.cfg<\/a>&nbsp;file below into that file).<\/li><li>Generate a license key at&nbsp;<a href=\"https:\/\/keymaster.fivem.net\/\">https:\/\/keymaster.fivem.net<\/a>.<\/li><li>Set the license key in your server.cfg using&nbsp;<code>sv_licenseKey \"licenseKeyGoesHere\"<\/code>.<\/li><li>Run the server from the&nbsp;<code>server-data<\/code>&nbsp;folder. For example, in a plain Windows command prompt (cmd.exe) window:<code>cd \/d D:\\FXServer\\server-data\nD:\\FXServer\\server\\run.cmd +exec server.cfg\n<\/code>(the&nbsp;<code>\/d<\/code>&nbsp;flag is only needed when changing directory to somewhere on a different drive)<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Windows Prerequisites Visual C++ Redistributable 2019&nbsp;or newer. Git&nbsp;to assure a correct installation. Installation Create a new directory (for example&nbsp;D:\\FXServer\\server), this will be used for the server binaries. Download the latest&nbsp;master&nbsp;branch build for Windows from the&nbsp;artifacts server. Extract the build into the directory previously created.3b. Use any archiving tool (such as WinRAR or 7-Zip). Clone&nbsp;cfx-server-data&nbsp;in a &#8230; <a title=\"How To Install a FiveM Server on Windows\" class=\"read-more\" href=\"https:\/\/serverhub.com\/kb\/how-to-install-a-fivem-server-on-windows\/\" aria-label=\"More on How To Install a FiveM Server on Windows\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[46],"tags":[45,47],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-windows-administration","tag-fivem","tag-windows-administration"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":0,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"wp:attachment":[{"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverhub.com\/kb\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}