fivem-basics
4
总安装量
4
周安装量
#50423
全站排名
安装命令
npx skills add https://github.com/germanfndez/fiveai-skills --skill fivem-basics
Agent 安装分布
opencode
4
gemini-cli
4
github-copilot
4
codex
4
amp
4
kimi-cli
4
Skill 文档
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
- User asks how FiveM resources or scripts work.
- Editing or creating
fxmanifest.lua,client_*.lua, orserver.lua. - Questions about client/server, events, or exports.
- Need to look up natives or detailed docs â point to https://docs.fivem.net/natives/ and https://docs.fivem.net/docs/.
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.