How lucagrp06/fivem works
Cfx.re is a family of PC game modification frameworks—FiveM and RedM—plus the FXServer multiplayer server. The broad user journey is launching a modified game, running resource scripts against game capabilities, and communicating with multiplayer services. The source index provides concrete evidence for parts of the CLR scripting and interop runtime; the README documents the product scope and networking approach. Many other listed subsystems are unsampled, so their internal connections are left out rather than inferred.
Main entry points: ScriptInterface.cs Script host interface · Main.cpp Game launcher · Component.cpp Game components · ResourceManager.cpp Resource manager
Components 17
Launch and game
- Game launcher
code/client/launcher/Main.cpp - Modified game
Game runtime
- Game components
code/components/citizen-game-main/src/Component.cpp - RAGE scripting
code/components/rage-scripting-five/src/scrEngine.cpp - Game script API
code/client/clrcore/External/Tasks.cs
Script runtime
- Resource manager
code/components/citizen-resources-core/src/ResourceManager.cpp - Client resources
code/components/citizen-resources-client/src/Component.cpp - Script manager
code/client/clrcore-v2/ScriptManager.cs - Script host interface
code/client/clrcore-v2/ScriptInterface.cs - Coroutine scheduler
code/client/clrcore-v2/Coroutine/Scheduler.cs - Script exports
code/client/clrcore-v2/Interop/ExportsManager.cs - Script events
code/client/clrcore-v2/Interop/Events.cs
Multiplayer services
- Server launcher
code/server/launcher/src/Main.cpp - FXServer
code/server/launcher/src/Server.cpp - Resource events
code/components/citizen-resources-core/src/ResourceEventComponent.cpp - Chat interface
ext/system-resources/resources/chat/html/App.ts
Other components
- Player
Connections 15
- Player → Game launcher: starts game
- Game launcher → Modified game: launches
- Modified game → Game components: hosts modification
- Game components → RAGE scripting: uses scripting hooks
- Script host interface → Coroutine scheduler: initializes and updates
code/client/clrcore-v2/ScriptInterface.cs - Script host interface → Script exports: initializes
code/client/clrcore-v2/ScriptInterface.cs - Script host interface → Script events: dispatches events
- Script manager → Script host interface: loads scripts into
code/client/clrcore-v2/ScriptManager.cs - Client resources → Resource manager: manages client resources
- Resource manager → Script manager: loads resource scripts
- Game script API → Modified game: calls game natives
- Player → Server launcher: connects to multiplayer
- Server launcher → FXServer: starts server
- FXServer → Resource events: hosts resource events
- Chat interface → Resource events: exchanges events