Guide

fxmanifest.lua Explained: FiveM Manifest Guide

What fxmanifest.lua does in a FiveM resource, a minimal template, the main manifest keys, and how to fix the "Couldn't find resource" error.

Every FiveM resource has a manifest. The file is named fxmanifest.lua, sits directly inside the resource folder, and tells the server which game the resource targets, which scripts and files belong to it, and what must start first. When a resource does not load, the manifest is the first place to look.

Last checked: 2 October 2026

What a fxmanifest.lua does

The server reads the manifest when the resource starts. It declares the manifest version with fx_version, the game with game, the client and server scripts, the files players download, and any dependencies. The FiveM reference lists cerulean (2020-05) as the current fx_version. Older resources used __resource.lua, which is why you may still see that name in old downloads.

A minimal template

This template contains only the keys most resources need. Change the file names to match your own scripts.

fx_version 'cerulean'
game 'gta5'

author 'Your Name'
description 'Short description of what this resource does'
version '1.0.0'

shared_scripts {
    'config.lua'
}

client_scripts {
    'client.lua'
}

server_scripts {
    'server.lua'
}

Old templates often include lua54 'yes'. The reference now lists it as deprecated because Lua 5.4 is the default, so leave it out of new resources. The reference documents author, description and version as free metadata; they are shown in its example and do not control loading.

The reference documents the singular forms (client_script, server_script, shared_script, file) as entries and shows the plural table form in its examples. Both styles appear in real resources, so match the style your existing scripts use.

Main keys

KeyWhat it does
fx_versionSets the manifest version. The reference lists cerulean as current, with bodacious and adamant as older values.
gameDeclares the target, for example gta5 or rdr3. The reference also lists common.
lua54Deprecated. Lua 5.4 is now the default.
author, description, versionFree metadata. Not used to load anything.
client_scripts / client_scriptLoads files on the client. Supports globbing.
server_scripts / server_scriptLoads files on the server only.
shared_scripts / shared_scriptLoads files on both the client and the server.
files / fileAdds files that clients download, such as NUI assets.
ui_pageSets the NUI page to a file or a URL.
dependency / dependenciesRequires other resources to start first.
provideMarks the resource as a replacement for another resource.
data_fileAdds a data file of a given type to the game's extra content system.
Tip

If your resource needs another one, declare it with dependency or dependencies and make sure the dependency is ensured above it in server.cfg. Read the full server config layout in server.cfg explained.

Keep an eye on server_scripts in resources you did not write. Every entry there runs on your server, so an unexpected one deserves a review. The backdoor check guide explains how to audit it.

"Couldn't find resource"

The error means FXServer could not find a folder with the name you asked for, or the folder does not contain a manifest where the server expects one. The usual causes are below.

Folder name mismatch

The name on the ensure line must match the folder name exactly. Linux servers are case-sensitive, so ox_lib and OX_Lib are different names. A stray space or a renamed folder causes the same error.

Missing manifest

fxmanifest.lua must sit directly inside the resource folder. Many downloads extract one folder too deep, so the manifest ends up in resources/[folder]/resource/fxmanifest.lua instead of resources/[folder]/fxmanifest.lua.

Ensure order

Start dependencies before the resources that use them. An ensure line for a resource that is not on disk fails at startup, and the error may appear next to a resource that is actually fine.

Category folders in brackets

Folders named like [standalone] are group folders that hold resources. The bracketed folder is not a resource itself. Community-reported: writing the brackets into an ensure line, or pointing ensure at a category folder, produces this error. Ensure the resource's own folder name.

Work through this checklist in order:

  1. Compare the ensure line with the folder name, letter by letter.
  2. Open the resource folder and confirm fxmanifest.lua is directly inside it.
  3. Remove brackets from the ensure line unless the bracketed name is a real resource.
  4. Make sure each dependency is ensured above the resource that needs it.
  5. Restart the server and read the first error in the console output.

Community-reported: from the server console or the txAdmin console, a refresh followed by an ensure is a quick test of one resource. Keep the ensure line in server.cfg so it loads on the next start.

refresh
ensure your_resource_name

What usually doesn't help

  • Renaming the folder to a guessed name without updating the ensure line to match.
  • Reinstalling FiveM or the server artifacts. The error is about files and names on disk.
  • Copying a manifest from another resource and not changing the file names inside it.
  • Adding lua54 'yes'. It does not affect the lookup, and the key is deprecated.
  • Ignoring the first error. The later errors are often a knock-on effect of the first one.

If nothing works

Read the full console output from startup, not just the last line. If the error names a resource that does not appear in your server.cfg, search the config and every file it includes for that name. Check the folder tree of the resource, including where the manifest sits.

If you use a managed host with a file manager, check the folder layout in the panel first. Hosting options are listed on FiveM hosting. When you ask for help on forum.cfx.re, share the resource folder tree and the ensure line, and leave out your license key and database passwords.

Frequently asked questions

What is fxmanifest.lua?

It is the manifest of a FiveM resource. It declares the game, the manifest version, the client, server and shared scripts, the files to download, and dependencies. The server reads it when the resource starts.

What replaced __resource.lua?

The reference says the manifest is named fxmanifest.lua. Older resources used __resource.lua, and you may still need to rename it when you update an old script.

Do I still need lua54 in fxmanifest?

No. The reference lists lua54 as deprecated because Lua 5.4 is the default.

Why does "Couldn't find resource" appear when the folder exists?

The usual reasons are a name mismatch with the ensure line, a manifest one folder too deep, or brackets written into the ensure line. Check those three first.

Can one manifest work for both client and server?

Yes. Use shared_scripts for files that must run on both sides, and client_scripts or server_scripts for files that belong to only one side.

FiveM.tools was founded with sponsorship from Nyru.