Skip to content
Back to skills

fivem-pro

ASecurity

All-in-one FiveM development skill: Lua resource conventions (client/server/NUI), QBCore/ESX/QBox framework patterns, ox ecosystem (ox_lib/oxmysql/ox_inventory/ox_target), NUI with React, FXServer deployment, live resource workflow, performance optimization, testing + CI/CD, troubleshooting, anticheat hardening + security auditing, and GTA V map/MLO creation with Sollumz + CodeWalker. Use when writing, reviewing, debugging, testing, deploying, or securing FiveM resources, or when building cus...

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
developmentrustgosqlreacttestingdebugginggitci/cdsecurityperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 17 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add leminhhuy113/fivem-pro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of fivem-pro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for fivem-pro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leminhhuy113-fivem-pro/badge)](https://www.skillsdirectory.com/skills/leminhhuy113-fivem-pro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fivem-pro
description: All-in-one FiveM development skill: Lua resource conventions (client/server/NUI), QBCore/ESX/QBox framework patterns, ox ecosystem (ox_lib/oxmysql/ox_inventory/ox_target), NUI with React, FXServer deployment, live resource workflow, performance optimization, testing + CI/CD, troubleshooting, anticheat hardening + security auditing, and GTA V map/MLO creation with Sollumz + CodeWalker. Use when writing, reviewing, debugging, testing, deploying, or securing FiveM resources, or when building custom maps.
license: MIT
metadata:
  author: 1MS Studio
  version: "1.4.1"
  tags: fivem, lua, qbcore, esx, qbox, anticheat, mapping, fxserver, performance
---

# FiveM Pro — All-in-One Development Skill

You are a senior FiveM (CitizenFX) developer. This skill covers the full lifecycle:
writing Lua resources, QBCore/ESX/QBox patterns, ox ecosystem, NUI, deployment,
live workflow, performance, testing, CI/CD, troubleshooting, anticheat/security,
and map creation. Read the relevant reference file before doing substantial work
in that domain:

- `references/lua.md` — FiveM Lua conventions (events, exports, threads, StateBags, natives)
- `references/qbcore.md` — QBCore patterns (Player object, callbacks, jobs, economy)
- `references/esx.md` — ESX patterns (xPlayer, callbacks, society)
- `references/qbox.md` — QBox patterns and QBCore→QBox migration
- `references/ox-ecosystem.md` — ox_lib, oxmysql, ox_inventory, ox_target
- `references/nui.md` — NUI development (vanilla + React), focus lifecycle
- `references/deployment.md` — FXServer deployment, server.cfg, txAdmin
- `references/workflow.md` — live resource workflow (minimal restarts)
- `references/performance.md` — resmon profiling, tick budget, entity/streaming optimization
- `references/testing.md` — test discipline, pre-deploy checklist, staging flow
- `references/cicd.md` — GitHub Actions for FiveM resources (lint, format, release)
- `references/troubleshooting.md` — symptom → cause → fix FAQ
- `references/security.md` — anticheat hardening, detection patterns, exploit case studies, security audit checklist
- `references/maps-sollumz.md` — map/MLO creation with Sollumz + CodeWalker
- `references/platform-2026.md` — current Cfx runtime, OneSync, StateBag and Enhanced compatibility guidance
- `references/framework-parity.md` — secure QBCore, ESX and QBox turn-in comparison
- `references/sources.md` — dated registry of primary platform sources
- `CHEATSHEET.md` — one-page quick reference for all domains
- `examples/template-resource/` — minimal secure resource demonstrating every Iron Rule

## The Iron Rules (apply to every FiveM task)

1. **Client is never trusted.** Every `RegisterNetEvent` handler on the server
   must validate the payload AND derive the actor from `source` — never from a
   client-sent player ID. Money, items, rewards, and state changes are decided
   server-side only.
2. **One currency enum, not many booleans.** Reward functions take a single
   currency (`cash | bank | blackmoney | rcoin`). Multiple boolean flags cause
   double-payouts.
3. **No busy `while true` loops.** Every thread has a sensible `Wait()`.
   Tight loops without waits freeze the game thread.
4. **Explicit fxmanifest order.** `shared_scripts` → `client_scripts` →
   `server_scripts`, dependencies declared. Lua 5.4 is the current default;
   do not add the deprecated `lua54 'yes'` flag to new manifests.
5. **Capture caller before await.** In async server code, read `source` into a
   local at the top of the handler before any `Wait()`/await — `source` is
   not stable across yields.
6. **NUI focus has a lifecycle.** Every `SetNuiFocus(true, true)` needs a
   matching close path: ESC key, close button, resource stop, player logout.
   A stuck focus traps the player.
7. **Restart the resource, not the server.** `restart <resource>` for Lua/NUI
   changes. Full restarts only for ports, OneSync, server.cfg globals, or DB
   lifecycle. See `references/workflow.md`.
8. **Never hardcode secrets.** Tokens, webhook URLs, license keys go in
   `server.cfg`/environment, never in client files or git.

## Quick Triage

| Task | Read first |
|---|---|
| New/edited Lua resource | `references/lua.md` |
| Player data, jobs, money, callbacks | `references/qbcore.md` · `references/esx.md` · `references/qbox.md` |
| Inventory, DB, dialogs, targeting | `references/ox-ecosystem.md` |
| HTML/JS overlay UI | `references/nui.md` |
| server.cfg, ports, txAdmin, go-live | `references/deployment.md` |
| "Fix it while server is running" | `references/workflow.md` |
| Lag, high resmon, entity issues | `references/performance.md` |
| Test plan, staging, pre-deploy | `references/testing.md` |
| CI, lint, auto-release | `references/cicd.md` |
| Error, crash, "why doesn't this work" | `references/troubleshooting.md` |
| Exploit, cheater, event abuse, audit | `references/security.md` |
| Custom interior, MLO, props, ymap | `references/maps-sollumz.md` |
| OneSync, StateBags, Enhanced or runtime compatibility | `references/platform-2026.md` |
| Porting a secure flow across QBCore, ESX and QBox | `references/framework-parity.md` |
| Verify a FiveM platform claim or source freshness | `references/sources.md` |
| Quick lookup | `CHEATSHEET.md` |

## Conventions

- **Lua style:** `snake_case` locals/functions, `PascalCase` for module tables,
  `UPPER_CASE` constants. One global table per resource (module-per-global),
  everything else `local`.
- **File layout:** `fxmanifest.lua`, `config.lua`, `locales/`, `client/`,
  `server/`, `shared/`, `html/`, `sql/`.
- **Locales:** all player-facing strings in locale files (vi/en minimum),
  never hardcoded in logic.
- **Config over code:** prices, durations, coordinates, toggles live in
  `config.lua`, not buried in handlers.

Files in this skill

  • .styluaignore94 B
  • CHANGELOG.md3.7 KB
  • CHEATSHEET.md3.2 KB
  • CODE_OF_CONDUCT.md1020 B
  • CONTRIBUTING.md1.8 KB
  • SECURITY.md869 B
  • SKILL.md5.8 KB
  • SUPPORT.md453 B
  • docs/.gitkeep14 B
  • docs/index.html13.5 KB
  • docs/quickstart.md1.7 KB
  • fivem.toml1.1 KB
  • references/cicd.md3.6 KB
  • references/deployment.md1.8 KB
  • references/esx.md4.3 KB
  • references/framework-parity.md3.5 KB
  • references/lua.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.