lua-basics
3
总安装量
3
周安装量
#55091
全站排名
安装命令
npx skills add https://github.com/germanfndez/fiveai-skills --skill lua-basics
Agent 安装分布
opencode
3
gemini-cli
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
Skill 文档
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.