Up to date with ESX Legacy 1.16.4
ESX Legacy documentation for FiveM
Clear, source-verified docs for the ESX framework: installation, the es_extended API, xPlayer, core resources, addons and practical guides for server owners and developers.
-- fxmanifest.lua
shared_script '@es_extended/imports.lua'
-- server.lua
ESX.RegisterCommand('payday', 'admin',
function(xPlayer, args)
args.target.addAccountMoney('bank', 500, 'Payday')
end, false, {
help = 'Pay a player',
arguments = {
{ name = 'target', help = 'Player ID', type = 'player' },
},
})Explore the documentation
Getting Started
Install ESX Legacy with txAdmin or by hand, configure server.cfg and write your first resource.
es_extended API
Every server, client and shared function of the ESX core, verified against the Lua source.
xPlayer Reference
Money, accounts, inventory, jobs, metadata: all xPlayer methods with parameters and examples.
Core Resources
esx_context, esx_menu_default, esx_multicharacter, esx_lib, esx_inventory and the rest of esx_core.
Addons
Jobs, shops, society, billing, property and more from the official ESX-Legacy-Addons repository.
Guides
Create jobs, add items, become admin, use oxmysql and ox_inventory, convert old ESX scripts.
Popular questions
What is ESX?
ESX (EssentialMode Extended) is an open-source roleplay framework for FiveM, the GTA V multiplayer platform. ESX Legacy is its actively maintained version: the es_extended core handles players, accounts, jobs and inventory, while core resources and addons add menus, character creation, jobs, shops and more.
This site is an independent community documentation. Every page is checked against the official esx_core and ESX-Legacy-Addons source code.
Building with AI? Every page is available as Markdown, and the whole site as llms.txt and llms-full.txt.