proelias7/fivem-skill

esx-framework

Develops resources for FiveM using the ESX Framework (Legacy).

First seen Feb 7, 2026

Installation

$ npx skills add proelias7/fivem-skill --skill esx-framework

Summary

  • Develops resources for FiveM using the ESX Framework (Legacy).
  • Covers resource creation, Core Object (ESX), xPlayer functions, Events, Callbacks, Items, Jobs, Database (oxmysql), and best practices.
  • Use when the user works with FiveM, ESX, ESX Legacy, or mentions `ESX.GetCoreObject`, `xPlayer`, `ESX.GetPlayerFromId`, or `esx:`.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from proelias7/fivem-skill.

npx skills add proelias7/fivem-skill

Browse all from proelias7/fivem-skill

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 6
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,201 B
  • docs SUMMARY.md 350 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 92 installs

SKILL.md

ESX Framework Development

Language rule: Internal reasoning is in compact English. All messages and output displayed to the user must be in the user's language.

This skill provides guidelines and patterns for developing resources using the ESX Framework (Legacy).

1. Core Object Retrieval

ESX Legacy (New Way):

local ESX = exports["es_extended"]:getSharedObject()

Legacy / Backwards Compatible:

local ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

2. Key Concepts

Player Data (Server-side)

  • xPlayer: The main object for player interaction server-side.
  • ESX.GetPlayerFromId(source): Retrieves the xPlayer object.
  • xPlayer Methods: xPlayer.addMoney, xPlayer.setJob, xPlayer.addInventoryItem.

Callbacks (Server -> Client Data)

  • ESX.RegisterServerCallback (Server): Respond to client requests.
  • ESX.TriggerServerCallback (Client): Request data from server.

Items & Database

  • Items are defined in the database (items table) or ox_inventory.
  • Database typically uses oxmysql.

3. Standard Resource Structure

my-resource/
├── fxmanifest.lua
├── config.lua
├── client/
│   └── main.lua
├── server/
│   └── main.lua
└── locales/
    └── en.lua

4. Best Practices

  1. Use New Exports: Prefer exports["es_extended"]:getSharedObject() over the event trigger.
  2. Validate xPlayer: Always check if xPlayer then before using it.
  3. Secure Events: Use ESX.SecureNetEvent (if available) or manual checks.
  4. OneSync: Develop with OneSync Infinity in mind (server-side entity creation).

5. Documentation