esx-framework

Build ESX Legacy resources for FiveM with Lua and oxmysql.

6|3|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/proelias7/fivem-skill --skill esx-framework
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: esx-framework
Source: https://github.com/proelias7/fivem-skill/tree/main/skills/esx-framework
Command: npx skills add https://github.com/proelias7/fivem-skill --skill esx-framework

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers in creating robust ESX framework resources (Legacy) for FiveM, addressing the complexity of core object access, item and job management, and database integration.

Core Features & Use Cases

  • Core Object & xPlayer: How to obtain the ESX core object and interact with xPlayer for money, inventory, and jobs.
  • Callbacks & Events: Server callbacks, client-server communication, and event handling for resource logic.
  • Database & Items: How to define items, interact with oxmysql, and manage persistent data across resources.
  • Use Case: Build a simple ESX resource that grants rewards based on job, currency, and inventory checks.

Quick Start

Create a new ESX resource following the standard layout with fxmanifest.lua, client/main.lua, server/main.lua, and a locales/en.lua. Then implement a sample feature that retrieves the player's job and grants an item.

Frequently Asked Questions about esx-framework

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access the ESX core object and xPlayer methods in FiveM Lua?

To access the ESX core object and xPlayer methods in FiveM Lua, you need to follow standard ESX Legacy patterns for retrieving the shared object, which then exposes player functions for money, inventory, and job management.

What's the best way to set up server callbacks and events for ESX resources?

Setting up server callbacks and events for ESX resources involves using standard ESX Legacy patterns to handle client-server communication, enabling structured resource logic and secure data passing between scripts.

How do I manage items and database operations with oxmysql in an ESX resource?

Managing items and database operations with oxmysql in an ESX resource requires using oxmysql queries to define items and manage persistent data, ensuring proper integration with the ESX Legacy core object.

Can I build a FiveM ESX resource that grants job-based rewards and currency?

You can build a FiveM ESX resource that grants job-based rewards and currency by using xPlayer methods to check inventory and job status, then applying logic to grant items or money upon meeting conditions.

Does ESX Legacy development require a specific resource folder structure?

ESX Legacy development requires a specific resource folder structure including fxmanifest.lua, client and server main.lua files, and locale files, ensuring proper resource recognition and execution within the FiveM server environment.

Why use oxmysql for database queries in FiveM ESX framework scripts?

You use oxmysql for database queries in FiveM ESX framework scripts to handle persistent data operations securely and asynchronously, preventing thread blocking and ensuring reliable database integration for resource logic.