Skip to main content
Mythic Framework is a modular, component-based architecture for FiveM built on four pillars:

Component-Based Design

Modular components that can be registered, fetched, extended, and composed

Event-Driven Communication

Asynchronous event system with middleware for inter-resource communication

Dual-Database Architecture

MongoDB for flexible game data, MySQL for relational data and compatibility

Modern UI Stack

React + Redux/Zustand UIs with NUI bridge

Architecture Diagram

Core Layer: mythic-base

Location: resources/[mythic]/mythic-base/ The heart of the framework. Every other resource depends on mythic-base.

Resource Layer

Location: resources/[mythic]/ All feature resources depend on mythic-base and follow a consistent structure.
  • mythic-pwnzor - Anti-cheat
  • mythic-queue - Server queue
  • mythic-characters - Character system
  • mythic-loadscreen - Loading screen

Communication Patterns

Component Communication

Resources communicate via the component proxy system:

Callback Communication

Server-client callbacks for request/response patterns:

NUI Communication

Client Lua and React UI communicate via NUI:

Data Flow

How all layers connect — example of opening inventory:

Load Order

Resources must load in the correct order. mythic-base must always be first.
Do NOT change the load order of core Mythic resources. They depend on each other and must start in a specific sequence. Changing this order will cause cascading failures across the framework.

Initialization Flow

Resources use this flow to safely initialize:

Next Steps

Component System

Deep dive into component-based architecture

Proxy Pattern

Learn the proxy system that powers Mythic

Event System

Understand event-driven communication

Database Architecture

MongoDB + MySQL dual-database system