repowiserepowise

citizenfx / fivem Architecture and code health

The source code for the Cfx modification frameworks, such as FiveM and RedM, as well as FXServer.

C++

github.com/citizenfx/fivemIndexed

What is 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. Its code health is 6.0 out of 10 (Fair), ranked #222 of 265 ranked repos. The last commit to fivem was on Nov 17, 2026, and 224 people have contributed.

As of commit 8cbec36, indexed Nov 23, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsfivem.md

Repo facts: type, license, health, rank, contributors
fivem facts
Code health6.0 / 10 (Fair)
Health rank#222 of 265 ranked repos
Last commitNov 17, 2026
Contributors224
Bus factor2
Size4,075 files, 913,931 lines

Ask about fivem

Answers come from fivem's README and source, with the files they cite. Two free answers a day without an account.

Ask about this code in your agent

This connects Repowise to fivem's code. It does not install fivem.

Useful if you want to change or fork fivem: your agent can ask how it is put together and get answers that cite its files.

Explore fivem

Code health

5.9out of 10Fair

Hotspots average 1.5, the place fixes pay off most.

On the leaderboards:#10 of 17 C++ repos

citizenfx/fivem FAQ

What is FiveM?

FiveM is a dual-purpose modification framework for the PC version of Grand Theft Auto V Legacy as released by Rockstar Games. It supports both single-player and multiplayer play and lets creators host large-scale community servers.

How does FiveM work?

FiveM lets creators build their own game modes and content in a variety of scripting languages on top of the game. FXServer is the server component that these community servers run on.

What language is FiveM written in?

FiveM is written mainly in C++. The repository also contains TypeScript, C#, Luau, JavaScript and shell files.

How is the FiveM code organized?

The FiveM code is organized 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 templates and CI workflows.

Who is FiveM for?

FiveM is for creators who want to host large-scale community servers and build their own game modes and content. It is also for players who join those servers to play.

About this page

Get a page like this for your own codebase

Repowise built this map of citizenfx/fivem from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

Key features of fivem

  • Runs as a dual-purpose framework that supports both single-player and multiplayer play for Grand Theft Auto V Legacy on PC.
  • Lets the creator community host and operate large-scale community servers.
  • Lets creators build their own game modes and content in a variety of scripting languages.
  • Includes RedM, a modification framework for the PC version of Red Dead Redemption 2 as released by Rockstar Games.
  • Includes FXServer, the server component for FiveM and RedM.

How citizenfx/fivem 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.

The codebase has 4,075 files and 59,925 symbols in 4 modules, led by C++, TypeScript and C#. Code health is 5.9 out of 10, rated fair.

Featured answer

Read the answer

FiveM is a dual-purpose modification framework for the PC version of Grand Theft Auto V Legacy, letting creators host community servers with their own game modes and content. The repository holds 4075 files split into top-level modules: code contains most of the source, ext holds supporting tooling such as the SDK and symbol upload projects, and .github holds issue and pull request templates and CI workflows. Startup begins in the native launcher at code/client/launcher/Main.cpp, while code/components/net/src/NetLibrary.cpp handles networking and code/components/citizen-server-impl/src/state/ServerGameState.cpp holds the server game state. FXServer is the server component that community servers run on, with code/components/citizen-server-state/init.lua as a Lua entry point for that state component. The architecture chart groups files into layers, with Application holding 3612 files, Utility 252, and UI 62, so start reading with the launcher, the networking file, and code/Gruntfile.js for build tasks.

Files per layer in fivem8 layers.

Basis: Inferred · knowledge graph· as of 8cbec36

Repowise maps public repos from their source. Not affiliated with citizenfx. What is Repowise?