lua-basics
SKILL.md
Lua Basics
Best practices for writing effective Lua code in FiveM. This skill covers fundamental Lua patterns, performance optimizations, and code quality guidelines specifically for FiveM development.
When to use
- Writing or reviewing Lua code for FiveM resources.
- Questions about Lua best practices, naming conventions, or code structure.
- Optimizing Lua code for performance.
- Need guidance on functions, tables, variables, conditionals, or error handling in Lua.
How to use
Read individual rule files for detailed explanations and examples:
- rules/functions.md — Function best practices: size, naming, parameters, exports, guard clauses.
- rules/tables.md — Table operations: array indices, dereferencing, avoiding table.insert, iterations, array size.
- rules/variables.md — Variable naming conventions: constants, locals, globals, enums vs booleans.
- rules/conditionals.md — Conditional patterns: default values, boolean expressions, readability.
- rules/errors.md — Error handling: assertions, pre-conditions, errors as values, fail loudly.
- rules/reference-links.md — Official Lua and FiveM documentation resources.
Weekly Installs
16
Repository
germanfndez/fiv…i-skillsGitHub Stars
2
First Seen
Feb 21, 2026
Security Audits
Installed on
github-copilot15
cursor15
opencode14
gemini-cli14
codex14
amp14