{"id":21381,"date":"2026-06-07T09:53:48","date_gmt":"2026-06-07T09:53:48","guid":{"rendered":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/"},"modified":"2026-06-07T09:54:11","modified_gmt":"2026-06-07T09:54:11","slug":"how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua","status":"publish","type":"post","link":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/","title":{"rendered":"How to Add Resources &#038; Scripts to a FiveM Server (fxmanifest.lua)"},"content":{"rendered":"<p>Resources are how you add anything to a FiveM server &mdash; cars, jobs, MLOs, scripts, whole frameworks. Every resource is driven by one required file: <code>fxmanifest.lua<\/code>. This guide explains how resources work and how to add them without the dreaded &#8220;resource failed to start&#8221; error.<\/p>\n<h2>What a resource is<\/h2>\n<p>A resource is just a folder inside your server&rsquo;s <code>resources\/<\/code> directory containing a <code>fxmanifest.lua<\/code> file. That manifest is the loading list: it tells FiveM which files exist, which run on the client, which run on the server, and which are shared by both. No manifest, no resource.<\/p>\n<h2>Anatomy of fxmanifest.lua<\/h2>\n<pre><code>fx_version 'cerulean'\ngame 'gta5'\n\nauthor 'You'\ndescription 'My resource'\nversion '1.0.0'\n\nshared_scripts { 'config.lua' }\nclient_scripts { 'client.lua' }\nserver_scripts { 'server.lua' }<\/code><\/pre>\n<ul>\n<li><strong>client_scripts<\/strong> run only on the player&rsquo;s machine (UI, draw loops, key handling).<\/li>\n<li><strong>server_scripts<\/strong> run on the FX server (database, money, validation).<\/li>\n<li><strong>shared_scripts<\/strong> run on both sides &mdash; ideal for config tables, locales, and shared event names.<\/li>\n<\/ul>\n<p>Missing or mismatched script declarations are the #1 reason a resource won&rsquo;t load. Our free <a href=\"\/tools\/fivem\/fxmanifest\">fxmanifest.lua builder<\/a> generates a valid manifest from your file list so you don&rsquo;t fight the syntax.<\/p>\n<h2>Adding a resource step by step<\/h2>\n<ol>\n<li><strong>Drop the folder<\/strong> into <code>resources\/<\/code> (often grouped in a <code>[local]<\/code> or <code>[scripts]<\/code> bracket folder).<\/li>\n<li><strong>Confirm it has fxmanifest.lua<\/strong> &mdash; if it only has the older <code>__resource.lua<\/code>, it may need updating.<\/li>\n<li><strong>Add it to server.cfg<\/strong> with <code>ensure resourcename<\/code>, after any resources it depends on.<\/li>\n<li><strong>Restart or refresh<\/strong> &mdash; from txAdmin or with <code>refresh<\/code> then <code>ensure resourcename<\/code> in the console.<\/li>\n<\/ol>\n<h2>Load order and dependencies<\/h2>\n<p>Most framework resources (ESX, QBCore) must start <em>before<\/em> the jobs and scripts that rely on them. If a resource errors on boot, check that its dependencies are ensured earlier in <code>server.cfg<\/code> &mdash; see our <a href=\"https:\/\/xgamingserver.com\/blog\/fivem-server-cfg-explained-every-important-setting\/\">server.cfg guide<\/a> for the correct ordering.<\/p>\n<h2>Manage it the easy way<\/h2>\n<p>On <a href=\"\/five-m-server-hosting\">XGamingServer FiveM hosting<\/a> you upload resources via the File Manager or SFTP and start them from txAdmin with one click &mdash; no command line required. The <a href=\"\/docs\/fivem\/configure-your-server\">server configuration guide<\/a> covers the full workflow.<\/p>\n<h2>FAQ<\/h2>\n<p><strong>What&rsquo;s the difference between __resource.lua and fxmanifest.lua?<\/strong> <code>fxmanifest.lua<\/code> is the current standard; <code>__resource.lua<\/code> is the legacy name. Use fxmanifest.lua.<\/p>\n<p><strong>My resource won&rsquo;t start.<\/strong> Verify the manifest is valid, the folder is in <code>resources\/<\/code>, it&rsquo;s ensured in server.cfg, and its dependencies load first.<\/p>\n<p><strong>Where do I put script files?<\/strong> Inside the resource folder; then declare them under client\/server\/shared in fxmanifest.lua.<\/p>\n<p><em>Sources: <a href=\"https:\/\/docs.fivem.net\/docs\/scripting-manual\/introduction\/introduction-to-resources\/\" rel=\"nofollow\">Cfx.re Docs &mdash; Introduction to resources<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resources are how you add anything to a FiveM server &mdash; cars, jobs, MLOs, scripts, whole frameworks. Every resource is driven by one required file: fxmanifest.lua. This guide explains how resources work and how to add them without the dreaded &#8220;resource failed to start&#8221; error. What a resource is A resource is just a folder [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[142],"tags":[],"class_list":["post-21381","post","type-post","status-publish","format-standard","hentry","category-fivem"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.5 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Resources &amp; Scripts to a FiveM Server (fxmanifest.lua) - XGamingServer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Resources &amp; Scripts to a FiveM Server (fxmanifest.lua)\" \/>\n<meta property=\"og:description\" content=\"Resources are how you add anything to a FiveM server &mdash; cars, jobs, MLOs, scripts, whole frameworks. Every resource is driven by one required file: fxmanifest.lua. This guide explains how resources work and how to add them without the dreaded &#8220;resource failed to start&#8221; error. What a resource is A resource is just a folder [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\" \/>\n<meta property=\"og:site_name\" content=\"XGamingServer\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/xgamingserver69\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-07T09:53:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-07T09:54:11+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:site\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"How to Add Resources &#038; Scripts to a FiveM Server (fxmanifest.lua)\",\"datePublished\":\"2026-06-07T09:53:48+00:00\",\"dateModified\":\"2026-06-07T09:54:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\"},\"wordCount\":404,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"articleSection\":[\"FiveM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\",\"name\":\"How to Add Resources & Scripts to a FiveM Server (fxmanifest.lua) - XGamingServer\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\"},\"datePublished\":\"2026-06-07T09:53:48+00:00\",\"dateModified\":\"2026-06-07T09:54:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xgamingserver.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FiveM\",\"item\":\"https:\/\/xgamingserver.com\/blog\/category\/fivem\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Add Resources &#038; Scripts to a FiveM Server (fxmanifest.lua)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"name\":\"XGamingServer\",\"description\":\"Dedicated Game Server Hosting\",\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\",\"name\":\"XGamingServer\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"XGamingServer\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/web.facebook.com\/xgamingserver69\/\",\"https:\/\/x.com\/xgamingserver\",\"https:\/\/www.instagram.com\/xgamingserver\/\",\"https:\/\/www.linkedin.com\/company\/xgamingserver\/\",\"https:\/\/www.pinterest.com\/xgamingserver\/\",\"https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add Resources & Scripts to a FiveM Server (fxmanifest.lua) - XGamingServer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Resources & Scripts to a FiveM Server (fxmanifest.lua)","og_description":"Resources are how you add anything to a FiveM server &mdash; cars, jobs, MLOs, scripts, whole frameworks. Every resource is driven by one required file: fxmanifest.lua. This guide explains how resources work and how to add them without the dreaded &#8220;resource failed to start&#8221; error. What a resource is A resource is just a folder [&hellip;]","og_url":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/","og_site_name":"XGamingServer","article_publisher":"https:\/\/web.facebook.com\/xgamingserver69\/","article_published_time":"2026-06-07T09:53:48+00:00","article_modified_time":"2026-06-07T09:54:11+00:00","twitter_card":"summary_large_image","twitter_creator":"@xgamingserver","twitter_site":"@xgamingserver","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#article","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/"},"author":{"name":"","@id":""},"headline":"How to Add Resources &#038; Scripts to a FiveM Server (fxmanifest.lua)","datePublished":"2026-06-07T09:53:48+00:00","dateModified":"2026-06-07T09:54:11+00:00","mainEntityOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/"},"wordCount":404,"commentCount":0,"publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"articleSection":["FiveM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/","url":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/","name":"How to Add Resources & Scripts to a FiveM Server (fxmanifest.lua) - XGamingServer","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/#website"},"datePublished":"2026-06-07T09:53:48+00:00","dateModified":"2026-06-07T09:54:11+00:00","breadcrumb":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/xgamingserver.com\/blog\/how-to-add-resources-scripts-to-a-fivem-server-fxmanifest-lua\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xgamingserver.com\/blog\/"},{"@type":"ListItem","position":2,"name":"FiveM","item":"https:\/\/xgamingserver.com\/blog\/category\/fivem\/"},{"@type":"ListItem","position":3,"name":"How to Add Resources &#038; Scripts to a FiveM Server (fxmanifest.lua)"}]},{"@type":"WebSite","@id":"https:\/\/xgamingserver.com\/blog\/#website","url":"https:\/\/xgamingserver.com\/blog\/","name":"XGamingServer","description":"Dedicated Game Server Hosting","publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/xgamingserver.com\/blog\/#organization","name":"XGamingServer","url":"https:\/\/xgamingserver.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","width":"1024","height":"1024","caption":"XGamingServer"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/xgamingserver69\/","https:\/\/x.com\/xgamingserver","https:\/\/www.instagram.com\/xgamingserver\/","https:\/\/www.linkedin.com\/company\/xgamingserver\/","https:\/\/www.pinterest.com\/xgamingserver\/","https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/21381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/comments?post=21381"}],"version-history":[{"count":1,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/21381\/revisions"}],"predecessor-version":[{"id":21383,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/21381\/revisions\/21383"}],"wp:attachment":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media?parent=21381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/categories?post=21381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/tags?post=21381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}