germanfndez/fiveai-skills

esx-framework

ESX Legacy Framework for FiveM - Player management, jobs, economy, inventory, weapons. Use when creating ESX resources or working with xPlayer, PlayerData, ESX functions.

First seen Feb 21, 2026

Installation

$ npx skills add germanfndez/fiveai-skills --skill esx-framework

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 germanfndez/fiveai-skills.

npx skills add germanfndez/fiveai-skills

Browse all from germanfndez/fiveai-skills

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 15
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,617 B
  • docs SUMMARY.md 188 B

History

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

SKILL.md

ESX Framework Development

Complete guide for developing with ESX Legacy Framework — the most trusted FiveM roleplay framework since 2017.

When to use

  • Creating or editing ESX resources/scripts
  • Working with player data (xPlayer, PlayerData)
  • Implementing jobs, economy, inventory, or weapon systems
  • Using ESX client/server functions, callbacks, or events
  • Questions about ESX best practices and optimization

How to use

Read individual rule files for detailed explanations and examples:

  • rules/core-concepts.md — ESX architecture, PlayerData, xPlayer object, framework initialization
  • rules/client-functions.md — Client-side ESX functions, UI systems, player state management
  • rules/server-functions.md — Server-side functions, player retrieval, callbacks, triggers
  • rules/xplayer-methods.md — xPlayer object methods: money, items, weapons, inventory, jobs, metadata
  • rules/jobs-economy.md — Job system, salaries, accounts (money/bank), society management
  • rules/inventory-items.md — Inventory system, item management, usable items, weight calculations
  • rules/weapons-loadout.md — Weapon system, loadout, components, ammo, tints
  • rules/events-callbacks.md — ESX events, server callbacks, client callbacks, secure net events
  • rules/best-practices.md — ESX coding standards, optimization, security, naming conventions
  • rules/reference-links.md — Official ESX documentation links

Key principles

  1. Always check for nilif xPlayer then ... end before using xPlayer
  2. Use ESX.GetPlayerFromId — Standard player retrieval: local xPlayer = ESX.GetPlayerFromId(source)
  3. Wait for player load — Check ESX.IsPlayerLoaded() on client before accessing PlayerData
  4. Never trust client — Validate all data server-side, use SecureNetEvent for client events
  5. Follow ESX patterns — Use ESX functions instead of reinventing (callbacks, notifications, etc.)
  6. Optimize loops — Cache player objects, avoid unnecessary GetPlayerFromId calls
  7. Use camelCase — Follow Lua naming: myVariable, MyGlobalFunction, MY_CONSTANT
  8. Minimal globals — Keep variables local unless they need global scope
  9. Use oxlib for UI — Prefer oxlib for menus, dialogs, notifications, progress bars instead of ESX UI