
Setting Up fxmanifest.lua for FiveM
Risposta rapida: every modern FiveM resource should include an fxmanifest.lua file in the resource folder. It tells FXServer which game the resource supports, which scripts to load, and which files must be sent to clients.
Ultimo aggiornamento: 25 giugno 2026
Minimal fxmanifest.lua
fx_version 'cerulean'
game 'gta5'
client_script 'client.lua'
server_script 'server.lua'
Cfx.re’s official resource manifest documentation identifies fxmanifest.lua as the current manifest file and notes that old __resource.lua manifests are deprecated. Use fx_version 'ceruleo' for modern FiveM resources unless a resource author documents a different requirement.
Client, server, and shared scripts
fx_version 'cerulean'
game 'gta5'
shared_scripts {
'config.lua',
'@ox_lib/init.lua'
}
client_scripts {
'client/*.lua'
}
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/*.lua'
}
Utilizzo shared_scripts only for files that are safe on both sides. Do not put server secrets, license keys, database passwords, or webhook URLs into shared files.
NUI resource example
fx_version 'cerulean'
game 'gta5'
ui_page 'web/index.html'
files {
'web/index.html',
'web/style.css',
'web/app.js'
}
client_script 'client.lua'
If a UI is blank in game, check that every HTML, CSS, JavaScript, font, and image file is listed under file. Missing files are a common cause of broken NUI screens.
Map or MLO resource example
fx_version 'cerulean'
game 'gta5'
this_is_a_map 'yes'
files {
'stream/*.ymap',
'stream/*.ytyp'
}
For maps and interiors, keep streamed files in a flusso folder and verify the resource starts without console warnings. If a map does not load, use the FiveM console and txAdmin logs before editing unrelated resources.
Errori comuni
- Utilizzo
__resource.luain a new resource. - Putting
server.luaSottoscript_client. - Forgetting NUI files under
file. - Putting secrets inside
shared_scripts. - Misspelling folders, especially
cliente,server, Eflusso.
Validation checklist
- Resource folder has
fxmanifest.luaat the top level. gioco 'gta5'is present for FiveM.- Client files load on the client, server files load on the server.
- Every NUI/static file is listed under
file. server.cfgincludesensure resource-name.
Related guides
- Introduction to Lua scripting for FiveM
- How to write FiveM scripts using AI
- How to check txAdmin logs
Dependency order in server.cfg
The manifest tells FiveM which files belong to a resource, but server.cfg still controls start order. Start shared libraries and framework dependencies before resources that use them.
ensure oxmysql
ensure ox_lib
ensure qb-core
ensure my-script
If a resource throws export errors on startup, check whether the dependency is installed, named correctly, and ensured before the script that calls it.
Framework-specific notes
ESX, QBCore, and Qbox resources often need framework imports, database libraries, and config files. Keep framework setup in documented files. Do not hide important setup in random client files. A clean manifest makes support easier because staff can see every file that loads.
Review checklist before publishing a script
- No secrets in shared or client files.
- No unused test files listed in the manifest.
- All NUI assets listed under
file. - Dependencies documented in the README or product description.
- Resource starts cleanly after a full server restart.






