Concept Overview
The Concept section maps NextVM's framework v2.3 specification onto the implemented code. Each chapter is a self-contained reference for one architectural concern.
If you're looking for how to use a feature, the Guide is usually the better starting point. If you're looking for why NextVM is built this way, this section is the answer.
Reading order
If you're new to NextVM, read in this order:
- Module System — what a module IS
- Dependency Injection — how modules wire together
- Character System — User vs Character
- State Management — character-scoped reactive state
- RPC — type-safe client/server calls
- Permissions — RBAC on FiveM ACE
- i18n — typed translation keys
- Tick System — managed frame budget
- Error Boundaries — module degradation
- Compatibility Layer — ESX/QBCore coexistence
Architecture principles
The whole framework is shaped by eight core principles (Concept Ch. 5.2):
- Dependency Inversion — modules depend on abstractions
- Single Responsibility — one domain per module
- Event-Driven — typed event bus, not direct imports
- Config-as-Code — Zod schemas validated at startup
- Zero Global State — instance state only
- Build-Time Safety — TS + Zod + CLI validate before runtime
- Schema-Driven — Zod schemas as single source of truth
- PLA-Aware — Tebex bridge for monetization
Each principle is enforced by one or more