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.

server.lua
-- 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

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.

esx-fivem.com is not affiliated with the ESX Framework team, Cfx.re or Rockstar Games. ESX is open source; official docs at docs.esx-framework.org.