# cheveyys/fivem-cheat-with-lua-executor-and-dumper architecture

> Architecture diagram of the GitHub repository cheveyys/fivem-cheat-with-lua-executor-and-dumper, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper
- Repository: https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper

## Overview

This repository presents a FiveM game-modification tool: the documented workflow is to run its loader, launch FiveM, then activate features through an in-game menu. The sampled code shows DLL startup, a Direct3D Present hook, menu rendering, and feature dispatch, plus an aimbot implementation. Lua execution, dumping, anti-detection, and injection methods are README-listed capabilities, but their implementing source was not shown; those branches are therefore marked unverified. The login UI also sets its connected state locally in the sampled code, while the network login call is commented out.

Main entry points: [`Core.cpp`](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp) (Core loop), [`dllmain.cpp`](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/dllmain.cpp) (DLL startup), [`Loader.exe`](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Loader.exe) (Loader), [`d3d_Hook.cpp`](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/d3d_Hook.cpp) (D3D hook setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Startup and Hooking"]
  node_loader["Loader<br/>[Loader.exe]"]
  node_dll_entry["DLL startup<br/>[dllmain.cpp]"]
  node_core["Core loop<br/>[Core.cpp]"]
  node_hook_setup["D3D hook setup<br/>[d3d_Hook.cpp]"]
end

subgraph group_ui["Menu and Authentication"]
  node_menu["In-game menu<br/>[Core.cpp]"]
  node_auth_ui["Login UI<br/>[Core.cpp]"]
  node_auth_client["Auth client<br/>[auth.hpp]"]
end

subgraph group_gameplay["Gameplay Features"]
  node_game_types["Game memory types<br/>[Classes.hpp]"]
  node_aimbot["Aimbot<br/>[Aimbot.hpp]"]
  node_visuals["Visuals"]
  node_players["Player features"]
  node_weapon["Weapon features"]
  node_noclip["No-clip"]
  node_vehicles["Vehicle features"]
end

subgraph group_documented["Documented Capabilities"]
  node_lua["Lua execution"]
  node_dumping["Memory dumping"]
  node_antidetect["Anti-detection"]
  node_injection["Injection methods"]
end

node_user(("User"))
node_fivem["FiveM process"]

node_user -->|"runs"| node_loader
node_user -->|"launches"| node_fivem
node_loader -.->|"loads"| node_dll_entry
node_fivem -->|"detects process"| node_dll_entry
node_dll_entry -->|"starts thread"| node_core
node_core -->|"initializes hook"| node_hook_setup
node_hook_setup -.->|"dispatches Present"| node_core
node_core -->|"draws"| node_menu
node_core -->|"renders"| node_auth_ui
node_auth_ui -.->|"login call commented"| node_auth_client
node_core -->|"calls"| node_visuals
node_core -->|"calls"| node_players
node_core -->|"calls"| node_aimbot
node_core -->|"calls"| node_weapon
node_core -->|"calls"| node_noclip
node_core -->|"calls"| node_vehicles
node_aimbot -->|"uses game types"| node_game_types
node_menu -.->|"activates features"| node_lua
node_menu -.->|"activates features"| node_dumping
node_injection -.->|"loads DLL"| node_dll_entry
node_antidetect -.->|"evades detection"| node_fivem

click node_loader "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Loader.exe"
click node_dll_entry "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/dllmain.cpp"
click node_core "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp"
click node_hook_setup "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/d3d_Hook.cpp"
click node_menu "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp"
click node_auth_ui "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp"
click node_auth_client "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/auth.hpp"
click node_game_types "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Classes.hpp"
click node_aimbot "https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Aimbot.hpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_loader,node_dll_entry,node_core,node_hook_setup,node_user toneBlue
class node_menu,node_auth_ui,node_auth_client toneAmber
class node_game_types,node_aimbot,node_visuals,node_players,node_weapon,node_noclip,node_vehicles toneMint
class node_lua,node_dumping,node_antidetect,node_injection toneRose
class node_fivem toneIndigo
```

## Components

### Startup and Hooking

- [Loader](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Loader.exe): `Loader.exe`
- [DLL startup](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/dllmain.cpp): `dllmain.cpp`
- [Core loop](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp): `Core.cpp`
- [D3D hook setup](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/d3d_Hook.cpp): `d3d_Hook.cpp`

### Menu and Authentication

- [In-game menu](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp): `Core.cpp`
- [Login UI](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Core.cpp): `Core.cpp`
- [Auth client](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/auth.hpp): `auth.hpp`

### Gameplay Features

- [Game memory types](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Classes.hpp): `Classes.hpp`
- [Aimbot](https://github.com/cheveyys/fivem-cheat-with-lua-executor-and-dumper/blob/main/Aimbot.hpp): `Aimbot.hpp`
- **Visuals**
- **Player features**
- **Weapon features**
- **No-clip**
- **Vehicle features**

### Documented Capabilities

- **Lua execution**
- **Memory dumping**
- **Anti-detection**
- **Injection methods**

### Other components

- **User**
- **FiveM process**

## Connections

- User → Loader: runs (evidence: `README.md`)
- User → FiveM process: launches (evidence: `README.md`)
- Loader → DLL startup: loads
- FiveM process → DLL startup: detects process (evidence: `dllmain.cpp`)
- DLL startup → Core loop: starts thread (evidence: `dllmain.cpp`)
- Core loop → D3D hook setup: initializes hook (evidence: `Core.cpp`)
- D3D hook setup → Core loop: dispatches Present
- Core loop → In-game menu: draws (evidence: `Core.cpp`)
- Core loop → Login UI: renders (evidence: `Core.cpp`)
- Login UI → Auth client: login call commented (evidence: `Core.cpp`)
- Core loop → Visuals: calls (evidence: `Core.cpp`)
- Core loop → Player features: calls (evidence: `Core.cpp`)
- Core loop → Aimbot: calls (evidence: `Core.cpp`)
- Core loop → Weapon features: calls (evidence: `Core.cpp`)
- Core loop → No-clip: calls (evidence: `Core.cpp`)
- Core loop → Vehicle features: calls (evidence: `Core.cpp`)
- Aimbot → Game memory types: uses game types (evidence: `Aimbot.hpp`)
- In-game menu → Lua execution: activates features
- In-game menu → Memory dumping: activates features
- Injection methods → DLL startup: loads DLL
- Anti-detection → FiveM process: evades detection
