# citizenfx/fivem

> FiveM is a dual-purpose, single-player and multiplayer modification framework for the PC version of Grand Theft Auto V Legacy as released by Rockstar Games. It lets creators host and operate large-scale community servers where they build their own game modes and content. Its main language is C++, with TypeScript, C#, Luau and JavaScript also used.

Source: https://github.com/citizenfx/fivem
Indexed: commit 8cbec36 on 2026-11-23 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Language: C++
- Stars: 4,342 at index time
- Code health: 6.0/10, Fair
- Last commit: 2026-11-17
- Contributors: 224

## How it works

The repository is split into top-level modules: code holds most of the source, ext holds supporting tooling such as the SDK and symbol upload projects, and .github holds issue templates, a pull request template and CI workflows. Startup begins in the native launcher at code/client/launcher/Main.cpp, and code/client/console/Main.cpp is a second client entry point. The networking layer is in code/components/net/src/NetLibrary.cpp, which is listed among the index's hotspot files. On the server side, code/components/citizen-server-impl/src/state/ServerGameState.cpp holds the server game state, and code/components/citizen-server-state/init.lua is a Lua entry point for that component. Build tasks are driven by code/Gruntfile.js, and ext/sdk/package.json is the manifest for the SDK package. FXServer is the server component that community servers run on.

- code/Gruntfile.js: entry point
- code/client/console/Main.cpp: entry point
- code/client/launcher/Bootstrap.cpp: entry point
- code/client/launcher/Main.cpp: entry point
- code/components/citizen-server-state/init.lua: entry point
Modules: code, ext, data, .github. 4,075 files, 913,931 lines, 59,925 symbols.

## Code health

- Score: 6.0/10 (Fair)
- Rank: #222 of 265 ranked repos
- Hotspots: code/components/glue/src/GtaNui.cpp, code/components/citizen-resources-core/src/EventReassemblyComponent.cpp, code/components/net/src/NetLibrary.cpp, code/components/citizen-server-impl/src/state/ServerGameState.cpp, code/components/nui-core/src/NUIWindow.cpp
- Lowest file: code/components/citizen-server-impl/src/state/ServerGameState.cpp
- Dead code: none found

## Maintenance

- Last commit 2026-11-17, 5,236 commits
- 224 contributors, bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/citizenfx/fivem/security

## More

- Page: https://repowise.dev/repo/citizenfx/fivem
- Ask this codebase: https://repowise.dev/repo/citizenfx/fivem/chat
- Docs: https://repowise.dev/repo/citizenfx/fivem/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/citizenfx/fivem
