Clean Architecture & HAL (292 Natives)
Every resource separates domain/ (pure rules), adapters/, and application/. Core.Platform.* isolates 292 entity, vehicle, colshape, and routing natives with a 100% offline mock.
Engineered from scratch with Clean Architecture, Core.Platform.* HAL (292 natives) isolation, and a Server-Authoritative model. Zero legacy dependencies (no ESX, QBCore, ox_lib, or oxmysql): 50 documented first-party resources with 0.00 ms idle draw.
Use the official txAdmin recipe to download all 50 resources, initialize the MariaDB schema via CoeMigrations, and generate server.cfg automatically.
https://www.coeroleplay.app/recipe.yaml
Mirror: raw.githubusercontent.com/…/recipe.yaml ↗
Install FXServer for GTAV Enhanced (build b170+), Node.js 24 LTS / Node 26 (libnode26) and MariaDB 11.x+. Create the database; coe_database runs the migrations on first boot.
CREATE DATABASE IF NOT EXISTS coe_framework
CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;Clone the repository (or unpack the release) into resources/[coe-framework]:
cd path/to/fxserver/resources
git clone https://github.com/marcelomatz/coe-framework.git "[coe-framework]"Point coe_database at your database and keep the boot order (supervisor and core before subsystems). The full order lives in recipe.yaml.
# Database (coe_database)
set coe_database_host "127.0.0.1"
set coe_database_port 3306
set coe_database_user "user"
set coe_database_password "password"
set coe_database_name "coe_framework"
# Boot order
ensure coe_supervisor
ensure coe_logging
ensure coe_database
ensure coe_core
ensure coe_ui
# ... remaining resources in recipe.yaml orderStart FXServer. coe_supervisor validates resource integrity during boot and reports to the console.
FXServer.exe +exec server.cfgFilter across the 5 engineering dimensions below to compare how COE Framework eliminates the historical bottlenecks of frameworks built during the DirectX 11 era.
| Technical Dimension | COE Framework (0.00 ms Idle · MIT) | Qbox (~0.42 ms Idle) | QBCore / ESX Legado (2.50+ ms Idle) |
|---|---|---|---|
| Client-Side Idle Draw (Idle Tick) | 0.00 ms flat (Zero permanent Wait(0) loops; O(1) spatial Colshapes) | ~0.42 ms (Relies on ox_lib zones + auxiliary threads) | 2.50+ ms (Dozens of while-true loops polling distance every frame) |
| FiveM Enhanced Runtime Alignment (GTAV Gen9 / DX12) | Native from day one (Core.Platform.* HAL covering 292 natives + full lockdown) | Partial (Adapted over resources inherited from DX11) | Legacy 2017–2021 (Microstutters, race conditions, and orphan entities) |
| Engine Defense, Anti-Cheat & Entity Lockdown | Built-in coe_shield (5 layers, sv_entityLockdown "full", (source, charId, gen) session & SHA-256 GDPR hash) | No built-in first-party anti-cheat (Requires third-party scripts) | Vulnerable to event spoofing, source recycling, and client-side entity spawning |
| Domain Architecture, ACID Database & Offline Tests | Clean Architecture (Domain/Adapters/Application), Node 26 ACID coe_database (Node.js 24 LTS / libnode26) & 165+ offline test suites (< 2s) | Procedural scripts coupled to oxmysql without offline native mocking | Shared mutable global objects (ESX/QBCore) without transactional isolation |
| NUI Design System & Localization Parity (i18n) | Unified coe_ui (--coe-* tokens, 5 real-time themes, Spatial 3D) & 100% CI-verified PT-BR / EN-US parity | Heterogeneous interfaces with separate styles per resource | Misaligned legacy HTML/CSS, hardcoded strings, and high CEF GPU overhead |
| Engineering Automation, Observability & AI Toolkit | coe_admin 2.0 (Prometheus/Perfetto + 8 QA Presets) + Agent Skills, Rules & check_contracts.lua --strict | Basic linters without automated LuaLS/export contract auditing | Zero contract validation pipeline or frame budget telemetry |
Every resource separates domain/ (pure rules), adapters/, and application/. Core.Platform.* isolates 292 entity, vehicle, colshape, and routing natives with a 100% offline mock.
Node.js 24 LTS / Node 26 (libnode26) MariaDB pool with parameterized prepared statements (?), idempotent migrations (CoeMigrations), and session tuple validation against source recycling.
Compatible with sv_entityLockdown "full" (networked entities spawn only on the server), server-only honeypots, Token Bucket rate limiting, and multi-token bans with SHA-256 hashing (GDPR/LGPD).
Prometheus metrics and Perfetto trace export, 60Hz (16.67 ms) frame budget monitor, 8 one-click role presets (#view-jobs), and patrimony origin auditing.
No legacy frameworks, no isolated scripts, and no chaotic dependencies. Explore the architecture across 6 structural layers and select real-world pipelines to inspect how all 50 resources collaborate with 0.00ms idle draw and strict server-authoritative validation.
coe_core is the foundation of the ecosystem. Delivers the Hardware Abstraction Layer (Platform HAL), ACE-guarded permission management, native localization (pt-BR / en-US), and cross-resource event bus.
coe_supervisor
0.00 ms (idle)
Monitors thread health, integrity, and resource lifecycle.
coe_database
Node 26 ACID
Native prepared statements (?) and transactions with automatic rollback.
coe_core
0.00 ms (idle)
Hardware Abstraction Layer (Core.Platform), Core.Locale, Core.Access and events.
coe_logging
0.00 ms (Async)
Asynchronous logging outside the FiveM main tick thread.
coe_audit
Immutable Audit
Tracks every cash, item, and vehicle mutation. Definite anti-dupe.
coe_ui
5 Temas NUI
CSS tokens (--coe-*), 5 real-time themes and CoeUI.confirm().
coe_notify
WebAudio Engine
Spatial audio feedback, clean stacking, and reactive positioning.
coe_hud
0.00 ms (idle)
High-precision speedometer, vitals, and in-game editor via /hud.
coetarget
0.00 ms (Raycast)
Replaces distance loops with direct line-of-sight on models, peds, and zones.
coe_characters
Multi-Character
Dynamic slots, rapid switching, and binding to accounts and inventory.
coe_appearance
Gen9 Textures
GTA V Gen9 textures, detailed anatomy, and zero memory leaks.
coe_spawn
Bucket Protected
World entry with routing bucket protection and newcomer hotels.
coe_loadscreen
Instant Ready
Smooth transition between asset preloading and FXServer synchronization.
coe_economy
Strict Server-Auth
Bank accounts, cash in hand, and mathematical exploit protection.
coe_inventory
233 Custom Icons
Quick-action slots, weight physics, corporate stashes, and trunks.
coe_banking
Encrypted Ledger
ATMs, instant transfers, loans, and accounting statements.
coe_shops
Multi-Payment API
Dynamic shelves and pluggable payment methods (RegisterPaymentMethod).
coe_businesses
Player-Owned Corp
Player businesses with employee hiring, payroll, and corporate cash.
coe_vehicles
HAL Entity Sync
Sync for door locks, fuel, virtual keys, and body damage via HAL.
coe_vehicle_catalog
Gen9 Handling
Native physics auditing, vehicle class balancing, and true speeds.
coe_jobs
Dynamic Payouts
Delivery routes, public service, and dynamic payouts to bank.
coe_needs
0.00 ms (Server Tick)
Hunger, thirst, and stress evaluated on server without heavy client polling.
coe_phone
Zero Framework Lock
Voice calls, contacts, messaging, and bank integration via CoE UI.
coe_tablet
Enterprise Terminal
Incident dispatch, business management, and operational control.
coe_talk
Sub-Tick Voice Sync
High-definition spatial audio, encrypted radio frequencies, and proximity.
coe_map
Dynamic Routing
Georeferenced points of interest and clean radar synchronization.
coe_admin
ACE Guarded
Role presets #view-jobs, patrimony auditing, and Prometheus/Perfetto metrics.
FiveM's transition to the GTA V Gen9 (DirectX 12) codebase retired legacy development practices. See how COE's architectural decisions guarantee unparalleled longevity and performance.
FiveM Enhanced based on the GTA V Gen9 (DirectX 12) engine demands clean frame pacing. Legacy frameworks run hundreds of while-true loops polling coordinates, causing micro-stutters. In COE, threads sleep completely until events or direct line-of-sight raycasting via coetarget occur.
No gameplay script touches Rockstar or Cfx.re natives directly. The Core.Platform module isolates all entity, ped, vehicle, and routing bucket calls. When FiveM updates or native signatures change, your server never breaks — only the HAL adapts.
coe_database operates outside the main Lua thread using native prepared statements (?) and an async Node.js 24 LTS / Node 26 (libnode26) pool. Every cash or item mutation runs atomic transactions with automatic rollback: failures revert state completely, wiping out duplication exploits.
Goodbye to patched NUI interfaces with conflicting CSS and Chromium stutters. CoE UI provides unified CSS tokens (--coe-*), accessible focus modals, and 5 themes switched in real time without reloading the NUI. Complete stack freedom: Vanilla, React, Vue, or Svelte.
The repository ships with architectural rules, LuaLS contract generators, and automated validators that enforce locale parity, native isolation, and zero regression.
check_contracts.lua --strict
Verifies LuaLS signatures in types.lua, forbids raw natives outside the HAL, and enforces 100% parity between pt-br.lua and en-us.lua.
smoke_boot_test.lua + 165 Suites
Simulates the full boot of all 50 resources and runs unit tests across domain, adapters, and handlers without launching FXServer.
Agent Skills & COE Academy
Ready-made skills for secure net events, idempotent SQL migrations, NUI interfaces, and ACE-guarded export contracts.
Every script has its own page with exports, commands and examples.
coe_supervisor
T1
Supervisor & Boot Orchestrator
FXServer Initialization & Lifecycle Orchestrator
Core & Engine
12 exports
coe_logging
T1
Structured Logging & Telemetry
Real-Time Telemetry & High-Precision Structured JSON Logs
Core & Engine
1 exports
coe_database
T1
High-Velocity MariaDB Node 26 ACID Persistence
Asynchronous Connection Pooling on Node.js 24 LTS / Node 26 (libnode26) without Blocking Lua Threads
Core & Engine
4 exports
coe_core
T1
HAL & Central State Management
Hardware Abstraction Layer & Player Session State Manager
Core & Engine
8 exports
coe_ui
T1
Design System & Theme Manager
Unified Hardware-Accelerated Design System with 5 Dynamic Themes
Interface & NUI
5 exports
coetarget
T1
Sub-Tick Spatial Raycasting
Third-Person Contextual Interaction with Zero Idle Draw
Core & Engine
8 exports
coe_audit
T1
Immutable Audit & Anti-Cheat Ledger
Cryptographic Ledger of Every Server-Side Transaction
Core & Engine
2 exports
coe_notify
T1
Tactical Toasts & Notifications
Visual Notification Engine with Procedural Sound Feedback
Interface & NUI
3 exports
coe_loadscreen
T1
Gen9 Cinematic Loading Screen
Initial Handshake with Dynamic Audio & Geometry Preloading
Interface & NUI
2 exports
coe_characters
T2
Multi-Character Creation & Selection
Cinematic Selection with Dynamic Cameras & Expandable Slots
Gameplay & Base
2 exports
coe_spawn
T2
Spawns & Camera Choreographer
Safe Materialization with Collision Mesh Preloading
Gameplay & Base
2 exports
coe_appearance
T2
Visual Customization & Wardrobe
Gen9 Shaders Character Creator & Precision Wardrobe System
Interface & NUI
10 exports
coe_hud
T2
Tactical HUD & Body Indicators
Minimalist Micro-Indicators, Vector Speedometer & 3D Voice Display
Interface & NUI
5 exports
coe_needs
T2
Metabolism, Physiology & Needs
Realistic Metabolic Decay with Overexertion & Dehydration
Gameplay & Base
3 exports
coe_inventory
T2
Grid Drag & Drop Inventory (233 New Icons)
Precision Tactical Grid Inventory with 233 Semi-Realistic Handcrafted Icons
Gameplay & Base
21 exports
coe_map
T2
Vector Minimap & Tactical GPS Radar
Vector Radar with Dynamic Blips & Integrated Digital Compass
Interface & NUI
2 exports
coe_talk
T2
3D Spatial Voice Matrix & Radio
3D Directional Audio Communication with Encrypted Radio Channels
Gameplay & Base
15 exports
coe_businesses
T2
Enterprise & Corporation Management
Player Enterprise Ownership with Automated Payroll and Corporate Vaults
Economy & Business
28 exports
coe_economy
T2
ACID Economic Engine & Ledger
Atomic Double-Entry Financial Transactions with Multi-Currency Support
Economy & Business
22 exports
coe_shops
T2
Retail Commerce & Cart Checkout
Convenience Stores, Pharmacies & Ammu-Nation with Visual Shopping Cart
Economy & Business
5 exports
coe_jobs
T2
Careers, Professions & Dispatch
Career Progression Engine with Dynamic XP and Procedural Missions
Gameplay & Base
9 exports
coe_vehicle_catalog
T2
Vehicle Fleet Directory & Parameters
Centralized Vehicle Data Dictionary with Technical Specifications
Vehicles & Fleet
8 exports
coe_vehicles
T2
Fleet Synchronization, Damage & Tuning
Permanent Damage Persistence, Garages & Visual Tuning Modifications
Vehicles & Fleet
14 exports
coe_rentals
T2
Vehicle Rentals with Deposit
A bike, scooter or compact car for new citizens, with the deposit returned on drop-off
Vehicles & Fleet
5 exports
coe_phone
T3
COE OS Smartphone
Phone, contacts, messages, camera, gallery, wallet and store apps
COE OS & Communication
0 exports
coe_tablet
T3
COE OS Tablet
The character's app hub: personal, work, business and illegal
COE OS & Communication
0 exports
coe_apps
T3
COE OS App Store
Store, Jobs, Classifieds, Insta and Studio for phone and tablet
COE OS & Communication
0 exports
coe_telecom
T3
Mobile Carrier
Prepaid and postpaid lines, rates, bills and the My Line app
COE OS & Communication
0 exports
coe_mail
T3
COE OS Mail
@correio.coe accounts, inboxes and system e-mails
COE OS & Communication
0 exports
coe_elos
T3
Elos — Professional Network
Profile, real résumé and connections on phone and tablet
COE OS & Communication
0 exports
coe_news
T3
News Portals
Weazel News and Rebel News: articles, editorial line and ads
COE OS & Communication
0 exports
coe_mechanic
T3
Mechanics & Workshops
Mileage-based part wear, tuning, paint, quotes and the Diagnostics app
Vehicles & Fleet
0 exports
coe_handling
T3
Simulator Handling & Tyres
Per-class profiles, tyre compounds and wear applied to handling
Vehicles & Fleet
0 exports
coe_fuel
T3
Fuel & Gas Stations
Four fuels, pumps, jerry can, player stations and refinery
Vehicles & Fleet
0 exports
coe_garages
T3
Garages & Fleets
Public, business and job garages with fleets and access control
Vehicles & Fleet
0 exports
coe_deepweb
T3
DeepWeb
Anonymous network by device tier, onion browser, forum, search engine and market
Underworld & Cyber
0 exports
coe_crypto
T3
Noxcoin — Cryptocurrency
Private-key wallets, public ledger, exchange and mining
Underworld & Cyber
0 exports
coe_loot
T3
Loot Tables
Centralized robbery loot with configurable rolls and weights
Underworld & Cyber
0 exports
coe_factions
T3
Illegal Factions
Gangs, mafias and chop shops with ranks, members and unlocked crafts
Underworld & Cyber
0 exports
coe_races
T3
Street Races
Illegal races with their own tablet, crypto buy-in, ranking and police risk
Underworld & Cyber
0 exports
coe_police
T3
Police
Cuff, fine, search, seize, escort and jail on top of coe_businesses
Public Safety
0 exports
coe_ems
T3
Health & EMS
Patient states, revive, treat and medical records on top of coe_businesses
Public Safety
0 exports
coe_dispatch
T3
Emergency Dispatch
Calls and alerts for on-duty police and EMS, with priority and blips
Public Safety
0 exports
coe_mdt
T3
Police MDT
Citizen and plate lookup, reports, warrants and calls on the tablet
Public Safety
0 exports
coe_banking
T3
Banking System
Branches, card-and-PIN ATMs, credit, loans and business accounts
Economy & Business
0 exports
coe_housing
T3
Housing & Properties
Starter apartment, hotels, houses and commercial properties with rent
Economy & Business
0 exports
coe_doors
T3
Doors & Locks
Locations with up to 12 doors, access by character, business, faction, item or code
Gameplay & Base
0 exports
coe_crafting
T3
Crafting Hub
Recipes, benches and crafting execution for mechanics, commerce and factions
Economy & Business
0 exports
coe_amzg
T3
Amzg — Online Store
Phone and tablet e-commerce with delivery to a box at the property
Economy & Business
0 exports
coe_admin
T3
Admin Panel
F10 panel with staff roles, businesses, properties, bank, crypto and tools
Core & Engine
0 exports
Every item was recreated at 128×128 (WebP and PNG) with directional lighting, material gradients and drop shadows.
See the full gallery →











The current version up front and the recent history below. Every version links to its full notes in the docs.