fivem-basics

SKILL.md

FiveM basics

Best practices for FiveM — resources, manifest, client/server, events. Use this skill whenever you are dealing with FiveM code to obtain domain-specific knowledge.

When to use

How to use

Read individual rule files for detailed explanations and examples:

  • rules/structure.md — Resource structure and organization: scope, client/server separation, logical grouping, naming conventions.
  • rules/fxmanifest.md — Resource manifest (fxmanifest.lua): fx_version, game, client_scripts, server_script, files, dependencies.
  • rules/client-server.md — Client vs server scripts, shared code, communication patterns.
  • rules/events.md — Events in Lua: RegisterNetEvent, TriggerServerEvent, TriggerClientEvent, naming conventions, security.
  • rules/exports.md — Defining and consuming exports between resources.
  • rules/debugging.md — Server vs client (F8) logs; when to ask the user for F8 logs if there's no server-side error.
  • rules/optimization.md — Lua/FiveM optimization: locals, loops, natives (PlayerPedId, vector distance), state bags, security, readability, folder structure.
  • rules/reference-links.md — Official docs and natives reference.
Weekly Installs
23
GitHub Stars
2
First Seen
Feb 21, 2026
Installed on
github-copilot22
cursor22
gemini-cli21
amp21
codex21
kimi-cli21