fivemluafxmanifestbasicsresource
fxmanifest.lua Complete Guide — Every Field You Need to Know
March 22, 2026
2 min read
3 views
fxmanifest.lua complete guide
Every FiveM resource must have fxmanifest.lua as its primary entry point. This file tells FiveM what your resource does, what it needs, and what files it contains.
Basic Structure
fx_version 'cerulean' -- version of FiveM manifest format
game 'gta5' -- gta5 or rdr3
author 'YourName'
description 'Resource description'
version '1.0.0'
Scripts
-- Server scripts
server_scripts {
'@oxmysql/lib/MySQL.lua', -- insert @ = shared resource
'config.lua',
'server/*.lua'
}
-- Client scripts
client_scripts {
'config.lua',
'client/*.lua'
}
-- Shared scripts (load both client and server)
shared_scripts {
'@es_extended/imports.lua',
'config.lua'
}
Dependencies
dependencies {
'es_extended', -- ESX must be started first.
'oxmysql',
'/server:6116', -- requires this server version or higher.
'/onesync' -- requires OneSync to be turned on.
}
NUI (HTML Interface)
ui_page 'ui/index.html'
files {
'ui/index.html',
'ui/style.css',
'ui/app.js',
'ui/img/*.png' -- glob patterns supported
}
Data Files
-- Add handling data for vehicle
data_file 'HANDLING_FILE' 'data/handling.meta'
data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'
data_file 'CARCOLS_FILE' 'data/carcols.meta'
Exports
-- Declare exports that can be called by other resources.
exports { 'GetPlayerData', 'IsPlayerAdmin' }
server_exports { 'GetAllPlayers', 'GetPlayerIdentifier' }
Lua54
lua54 'yes' -- Enable Lua 5.4 (recommended)
-- got integer division (//), bitwise operators, to-be-closed variables
Complete example
fx_version 'cerulean'
game 'gta5'
author 'M2Dev'
description 'Custom Job Script'
version '2.1.0'
lua54 'yes'
dependencies {
'es_extended',
'oxmysql'
}
shared_scripts {
'@es_extended/imports.lua',
'config.lua'
}
server_scripts {
'@oxmysql/lib/MySQL.lua',
'server/main.lua',
'server/callbacks.lua'
}
client_scripts {
'client/main.lua',
'client/ui.lua'
}
ui_page 'ui/index.html'
files {
'ui/index.html',
'ui/style.css',
'ui/app.js'
}
exports { 'IsOnDuty', 'GetJobData' }
Common Errors
| Error | Cause | Solution |
|---|---|---|
Could not load resource |
wrong path | check glob pattern |
dependency not met |
resource not started | check server.cfg order |
script not found |
File does not exist | Check file path |
Summary
fxmanifest.lua A good resource is the foundation of good resources. Understand every field and you will avoid common errors and deploy scripts with confidence.
Related Articles
Breaking: GTA Online อัพเดท "Money Fronts" — FiveM Server Owners ต้องทำอะไร?
Rockstar ปล่อย GTA Online อัพเดท Money Fronts มีผลกระทบต่อ FiveM servers บางส่วน นี่คือสิ่งที่ต้องทำทันทีหลังอัพเดท
Community Spotlight: Script และ Projects ที่น่าสนใจจาก FiveM Community
รวม scripts, tools และ projects ที่โดดเด่นจาก FiveM community ในช่วงที่ผ่านมา ตั้งแต่ free resources ถึง open-source projects
txAdmin อัพเดทใหม่ — Dashboard, Diagnostics และ Ban System ที่ดีขึ้น
txAdmin ซึ่งตอนนี้เป็นส่วนหนึ่งของ Cfx.re อย่างเป็นทางการ ได้รับการอัพเดทครั้งใหญ่ มี features ใหม่ที่ทำให้ Server Management ง่ายขึ้นมาก