Skip to content

5 min read

ESX Legacy for FiveM in 2026: Setup, esx_lib and What Changed

An ESX Legacy FiveM server changed more between July and October 2026 than in the two years before. Version 1.14 gave the framework its own library, esx_lib. Version 1.16 replaced the old F2 menu inventory with a slot-based NUI one. The current release is 1.16.4, tagged on 18 October 2026, and most setup tutorials online describe a server that no longer matches what the recipe installs.

ESX Legacy at a glance

ESX Legacy is the maintained line of the ESX roleplay framework, published in the esx_core repository under GPL 3.0. Its core resource, es_extended, depends on oxmysql and on esx_lib, the framework’s own library since 1.14. OneSync is mandatory. The official txAdmin recipe installs the core, close to 40 addon resources and the database in one run.

Current ESX Legacy setup

ESX Legacy is in txAdmin’s popular recipe list, so the install is short: run FXServer, pick the recipe, give it database credentials and a licence key. Behind the button, the recipe does this:

  • Downloads the core into resources/[core]: es_extended, esx_lib, esx_inventory, esx_multicharacter, esx_identity, esx_skin, the menu resources and a few UI helpers.
  • Imports [SQL]/legacy.sql, which creates 24 tables including users, jobs, job_grades, items and owned_vehicles.
  • Downloads ESX-Legacy-Addons into resources/[esx_addons]: esx_policejob, esx_ambulancejob, esx_banking, esx_garage, esx_vehicleshop, esx_society and the rest.
  • Adds oxmysql, ox_lib, pma-voice and bob74_ipl to resources/[standalone].

One catch: the recipe pulls the core from the main branch, not from a tagged release. Open es_extended/fxmanifest.lua after the install and note the version line, so you know what you are running when you ask for help.

Start order

ensure chat
ensure oxmysql
ensure esx_lib
ensure es_extended
ensure [core]
ensure [standalone]
ensure [esx_addons]

Keep that sequence and add your purchased resources in a folder of their own after [esx_addons]. Three more lines in server.cfg deserve a look:

set onesync on
set mysql_connection_string "mysql://user:password@localhost/es_extended?waitForConnections=true&charset=utf8mb4"
#setr esx:locale "en"

OneSync has been required since Legacy 1.7.5. The locale follows the language you chose in txAdmin unless you uncomment the convar.

esx_lib: the dependency that arrived in 1.14

esx_lib is the official ESX library. It exposes a global called xLib with modules for callbacks, caching, points and marker zones, raycasts, model streaming, vehicle properties, key binds and table and maths helpers. Core resources load it with one manifest line:

shared_script '@esx_lib/imports.lua'

The old helper functions did not vanish. ESX.Table.Clone, ESX.Math.Round, ESX.SetTimeout and their siblings are now aliases that point at xLib, so existing resources keep working.

The timeline matters if you update an older server by hand. esx_lib shipped with 1.14.0 on 17 July 2026, and ensure esx_lib entered the default server.cfg with 1.14.1 a month later. Copy a new es_extended over an old one without also adding the esx_lib folder, and the core stops with a missing dependency error.

Where ox_lib fits in

You will read that ESX Legacy depends on ox_lib and that ox_lib must start before es_extended. The manifests say otherwise. The dependency block of es_extended 1.16 lists esx_lib, oxmysql and two native checks. The 1.10, 1.11, 1.12 and 1.13 tags do not list ox_lib there either.

The recipe still installs ox_lib into [standalone], and you should keep it. Three things on a typical server need it:

  • ox_inventory, if you prefer it to the built-in inventory.
  • ox_target, the usual third-eye interaction.
  • A large share of paid resources, which list ox_lib in their own manifests.

ESX detects ox_inventory by itself. If the resource exists, the core sets Config.CustomInventory to "ox" and switches its own inventory off. Your part is one convar and the order:

setr inventory:framework "esx"

ensure oxmysql
ensure ox_lib
ensure esx_lib
ensure es_extended
ensure ox_inventory

What changed from old ESX 1.x

If your last ESX server ran 1.1 or 1.2, usually called v1 final, this is what will trip you up.

  • Getting the ESX object. Old scripts fire TriggerEvent('esx:getSharedObject', ...) in a loop. Legacy scripts add shared_script '@es_extended/imports.lua' to the manifest or call exports['es_extended']:getSharedObject(). The 1.16 core still answers the old event, so ancient resources load, but new code should not use it.
  • Identifiers. Players are keyed by Rockstar licence, read from the esx:identifier convar. ESX 1.1 used the Steam hex, so a database from that era needs its identifiers converted.
  • Database driver. oxmysql replaced mysql-async.
  • Inventory. The per-item limits of 1.1 gave way to weight, set by Config.MaxWeight (24 by default).
  • Characters. esx_multicharacter and esx_identity ship in [core]. The core turns multicharacter on when it finds the resource.
  • Admin commands. Config.CommandPermissions maps each command to the groups allowed to run it. The older Config.AdminGroups table is deprecated.
  • Config location. The core config moved to es_extended/shared/config/main.lua, with weapons, logs and adjustments in files beside it.

Changes inside 2026

  • 1.14.0 (17 July): esx_lib arrives. Raycast, entity and key bind code moves into it.
  • 1.15.0 (1 September): a refactor of the core resources and a new loading screen.
  • 1.16.0 (11 October): esx_inventory, a NUI inventory with slots, drag and drop, a hotbar and a storage API other resources can register stashes with. Also esx_whitelist with Discord role checks, switched off by default from 1.16.1.
  • 1.16.2 (17 October): synced population density and much wider vehicle property capture, including drift tyres and wheel health.

Core config to review first

Config.StartingAccountMoney = { bank = 50000 }
Config.MaxWeight = 24
Config.EnablePaycheck = true
Config.PaycheckInterval = 7 * 60000
Config.OffDutyPaycheckMultiplier = 0.5
Config.Identity = true

Fifty thousand in the bank on arrival is a lot for a serious economy, so that line is usually the first to change. Paychecks land every seven minutes, and off-duty players get half. ESX keeps three accounts per player: money, bank and black_money.

Buying resources for ESX Legacy

Two questions settle most compatibility worries. Does the product page say ESX Legacy, or only “ESX”? And does the resource support the inventory you run, whether that is the built-in one, ox_inventory or something else? A resource written for v1 final can still load on 1.16 thanks to the event fallback, but anything that touches the inventory or identifiers will need an update. The ESX scripts category is the place to filter by framework before you compare features.

Still deciding between frameworks? QBCore vs ESX compares the two for a new server and prices a port between them. If the ox stack appeals more than the ESX library, the Qbox setup guide covers that route.

ESX Legacy at the end of 2026 has its own library, a modern inventory and five releases in a single October. Check the version line in es_extended/fxmanifest.lua before you buy, and match it against what the product page says it was built on.

From the store

Best sellers

All scripts

Read next