Skip to main content
Home
Shop
Free Mods
Tools
Bundles
Full Servers
  1. Home
  2. Blog
  3. Development

Setting Up fxmanifest.lua (FiveM)

Published on October 11, 2024·by Lars Miller(Founder & Lead Editor)·Credentials·5 min read·Updated on December 24, 2025
Development

Setting up a resource manifest (fxmanifest.lua) is essential for every FiveM resource, including maps, scripts, and other content types. The...

Setting Up fxmanifest.lua (FiveM)
Setting Up fxmanifest.lua (FiveM)

Setting up a resource manifest (fxmanifest.lua) is essential for every FiveM resource, including maps, scripts, and other content types. The fxmanifest.lua file serves as the configuration file for your resource, specifying metadata, files to be loaded, and scripts that should run on the client or server side. This guide will help you transition from the older __resource.lua setup to the more modern and flexible fxmanifest.lua system, which is now the standard for FiveM resources.

  • What is fxmanifest.lua?
  • Basic Structure of fxmanifest.lua
  • Step-by-Step Guide to Setting Up fxmanifest.lua
  • Special Cases and Additional Options
  • Complete Example of fxmanifest.lua
  • Troubleshooting Common Issues
  • FAQ
  • Conclusion

What is fxmanifest.lua?

fxmanifest.lua is the configuration file for FiveM resources. It provides information about the resource, specifies which scripts to load, and defines various settings required for the resource to function correctly in a FiveM server. The manifest replaces the older __resource.lua file with a more structured approach, offering better organization and flexibility.

Why Use fxmanifest.lua?

The fxmanifest.lua system offers several advantages over __resource.lua:

  • Better Structure: fxmanifest.lua is more organized and allows you to use different metadata fields.
  • Compatibility: It supports new game builds and includes backward compatibility options.
  • Flexibility: You can define additional data and custom metadata fields.

Basic Structure of fxmanifest.lua

Before diving into the setup, let's understand the basic structure of an fxmanifest.lua file. Below is a typical example:

-- Resource Metadatafx_version 'cerulean'games { 'gta5' }author 'Your Name <your.email@example.com>' -- optionaldescription 'A brief description of your resource' -- optionalversion '1.0.0' -- optional-- What to runclient_scripts {    'client.lua'}server_scripts {    'server.lua'}-- Additional datafiles {    'data/file1.dat',    'data/file2.dat'}data_file 'DLC_ITYP_REQUEST' 'stream/resource_name.ytyp'

Breakdown of the Sections

  1. Resource Metadata: This section defines the basic information about your resource, such as the FX version and supported games.
  2. Scripts: Specifies which scripts should run on the client or server.
  3. Additional Data: Optional section for specifying additional files or data files.

Let's explore each component in detail.


Step-by-Step Guide to Setting Up fxmanifest.lua

Follow these steps to create an fxmanifest.lua file for your FiveM resource:

Step 1: Define the FX Version

The first line of your fxmanifest.lua should define the FX version. This is required and specifies which version of the FiveM framework your resource is targeting. Currently, the most common versions are:

  • bodacious
  • cerulean
  • adamant

Use the following line to define your FX version:

fx_version 'cerulean'

Step 2: Specify the Supported Games

The games section specifies which games your resource supports. Typically, this will be:

  • gta5 for Grand Theft Auto V
  • rdr3 for Red Dead Redemption 2

You can specify multiple games if needed:

games { 'gta5' }

Step 3: Add Resource Metadata (Optional)

Although optional, adding metadata like the author, description, and version is a good practice as it helps other developers understand what your resource is about. Here’s how you can add metadata:

author 'Your Name <your.email@example.com>'description 'A brief description of your resource'version '1.0.0'

Step 4: Set Up the Scripts

Client Scripts

Define the scripts that should run on the client's side. Use client_scripts to list these:

client_scripts {    'client.lua',    'client_additional.lua' -- Add more scripts if necessary}

Server Scripts

Define the scripts that should run on the server side. Use server_scripts to list these:

server_scripts {    'server.lua',    'server_helper.lua' -- Additional server-side scripts}

Step 5: Add Files to the Resource

If your resource includes additional files such as images, data files, or audio files, specify them using the files section:

files {    'html/ui.html',    'html/style.css',    'html/script.js'}

Step 6: Use Data Files

Certain resources require data files for loading map assets, animations, or other custom data. Use the data_file directive to specify these:

data_file 'DLC_ITYP_REQUEST' 'stream/resource_name.ytyp'

Step 7: Specify Additional Metadata (Optional)

You can add custom metadata fields to store extra information about your resource. These fields can be named arbitrarily, and you can add as many as you like:

my_custom_data 'some_value'another_custom_field 'another_value'

Special Cases and Additional Options

Setting Up Maps in fxmanifest.lua

For maps, it's essential to specify that the resource is indeed a map. Use the this_is_a_map directive:

this_is_a_map 'yes'

Using Multiple Game Versions

If your resource needs to support multiple games (e.g., GTA V and Red Dead Redemption 2), specify them in the games section:

games { 'gta5', 'rdr3' }

Setting Dependencies

If your resource depends on other resources, you can specify these dependencies using the dependencies field:

dependencies {    'essentialmode',    'another_required_resource'}

Complete Example of fxmanifest.lua

Here is a complete example of an fxmanifest.lua file that includes all the aspects we discussed:

-- Resource Metadatafx_version 'cerulean'games { 'gta5' }author 'Your Name <your.email@example.com>'description 'Example resource for a custom script'version '1.0.0'-- Resource Settingsthis_is_a_map 'yes'-- Client and Server Scriptsclient_scripts {    'client/main.lua',    'client/helper.lua'}server_scripts {    'server/main.lua',    'server/database.lua'}-- UI Assets and Additional Filesfiles {    'html/ui.html',    'html/style.css',    'html/script.js',    'audio/soundtrack.mp3'}-- Data Files for Custom Map Assetsdata_file 'DLC_ITYP_REQUEST' 'stream/my_custom_map.ytyp'-- Custom Metadata Fieldscustom_info 'Extra info about the resource'random_setting 'random_value'-- Dependency Resourcesdependencies {    'essentialmode',    'mysql-async'}

Troubleshooting Common Issues

Issue 1: Resource Not Loading

  • Check the FX Version: Make sure the fx_version is specified correctly and matches a valid version.
  • Ensure Proper File Paths: Double-check that all paths in the client_scripts, server_scripts, and files sections are accurate.

Issue 2: Custom Data Not Working

  • Ensure Correct Syntax: Verify that custom metadata fields and data files are set up using the correct syntax. For example, make sure you are using curly braces {} where necessary.

Issue 3: Map Not Loading

  • Set this_is_a_map Properly: Make sure you have included this_is_a_map 'yes' in your fxmanifest.lua.
  • Use Correct Data Files: If you are loading custom map assets, ensure that the data_file directives are set up accurately.

FAQ

Q: What must fxmanifest.lua include?
A: fx_version, game, your client/server/shared scripts, and files you stream.

Q: What’s client vs server vs shared?
A: Client runs on players, server runs on the host, shared loads on both.

Q: How do I declare dependencies?
A: Use dependency 'name' or dependencies b and ensure order in server.cfg.

Q: How do I stream assets?
A: Put assets in /stream and list files as required by the resource type.

Q: Why add lua54 'yes'?
A: Enables Lua 5.4 features and performance improvements.

Q: Common manifest errors?
A: Wrong paths/names, missing commas, invalid fx_version, or incorrect folder name.

Q: How to export/import functions?
A: Use exports/server_exports in the manifest and call via exports['resourcename']:function().

Q: What about maps/MLOs?
A: Use this_is_a_map 'yes' and declare data_file entries for YTYPs if needed.

Conclusion

Setting up fxmanifest.lua is a straightforward yet crucial step in creating and running resources for a FiveM server. By following the structure and recommendations outlined in this guide, you can ensure that your resources are well-organized, flexible, and compatible with the latest FiveM updates. Make sure to test your setup after making changes and double-check for any errors to keep everything running smoothly.

With the tips and examples provided, you should now be equipped to create or convert an fxmanifest.lua file for any FiveM resource with ease.

Previous Article

How to Use Resmon in FiveM (To Optimize Resources)

Next Article

How To Stream Addon Clothes/Props (FiveM Models)

More on This Topic

Inventory & Weight Tuning: From items.lua to MetadataHow to Evaluate, Test, and Maintain FiveM ScriptsBest FiveM Settings to Boost FPSHow To Install Custom Cars (FiveM)Record FiveM (OBS/Shadowplay): Stutter-Free Settings

Move from research to a production-ready server stack

Once you know the direction, jump into the highest-leverage commercial hubs for verified scripts, curated bundles, and framework-specific buying paths.

Framework hub

Browse QBCore-ready scripts

Move into the QBCore landing page to compare verified scripts, framework fit, and install-ready products built for modern FiveM servers.

Open QBCore hub

Premium catalog

Browse premium FiveM scripts

Move from research into the main shop to compare real products, framework labels, screenshots, and production-ready quality signals.

Open premium shop

Launch faster

Compare curated bundles

Bundles shorten the path from planning to launch by grouping the highest-leverage scripts into a cleaner commercial starting point.

View bundles

Disclosure: Some links below are affiliate links to FiveMX products. We may earn a commission at no extra cost to you.

Related Articles

Best Reshade Settings For High Graphics in GTA 5 (FiveM) ...

Best Reshade Settings For High Graphics in GTA 5 (FiveM) ...

TL;DR Grab our ultra-realistic 2025 preset, drop it in your ReShade folder, pick your style (vibrant or atmospheric), and enjoy next-gen visuals with a...

May 22, 2025
How To Change Vehicle Handling (FiveM)

How To Change Vehicle Handling (FiveM)

Want tighter brakes, grippier tires, or real drift physics? You can change vehicle handling in FiveM in two clean ways:

October 17, 2025
CFX Server List Ranking Guide: Settings & Listing Hygiene

CFX Server List Ranking Guide: Settings & Listing Hygiene

You want your server to show up, get clicked, and keep players. This guide gives you exact steps that move the needle today: cleaner naming, better descriptions, correct banners,…

September 23, 2025
Secure CheckoutInstant AccessMoney-Back GuaranteeLifetime Updates
FiveMX

Premium FiveM scripts and mods for serious server owners.

Shop

  • Shop
  • QBCore Scripts
  • ESX Scripts
  • FiveM Scripts
  • Free Mods
  • Best Scripts & Mods

Help

  • About
  • FAQ
  • Support
  • Contact
  • Account
  • Affiliate Program

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Cookie Policy
  • GDPR Compliance
  • DMCA
  • Imprint
  • Editorial Policy
© 2026 FiveMX. All rights reserved.·support@fivemx.com

FiveMX is not affiliated with Rockstar Games, Take-Two Interactive, or CFX.re. All trademarks are property of their respective owners.

Flash Sale — Up to 19% off!Flash Sale — 19% off!Shop Now