Foundations & The 15 Non-Negotiable Rules
Understand why FiveM Enhanced (DX12) requires 0.00ms idle and master the 15 rules governing COE.
The complete educational platform for human developers and AI Coding Agents. Learn Clean Architecture, Core.Platform HAL, the 50 MIT Framework Scripts (Core, City Base & Advanced Yield), and exact AI Prompt Playbooks.
Each lesson is structured in 5 pedagogical stages: Real Problem & Context, Layered Architecture, Code Deep Dive, AI Prompt Playbook, and Interactive Evaluation Quiz.
Understand why FiveM Enhanced (DX12) requires 0.00ms idle and master the 15 rules governing COE.
The official layered architecture (Domain, Adapters, Application), fxmanifest.lua, and lifecycle.
Isolate entity, vehicle, and spatial colshape natives for update immunity and offline tests.
Hardened net events, ValidateSession(source, charId, gen), TOCTOU mitigation, ACE, and coe_audit.
Prepared statements with coe_database on Node 24/26, rollback transactions, and CoeMigrations.
Tactical CSS tokens, 5 real-time themes, zero emojis (100% SVG), and secure NUI callbacks.
Zero hardcoded strings in code. 100% parity between pt-BR and en-US with safe interpolation.
LuaLS types in types.lua, pure Lua 5.4 offline unit tests, and strict CI pipeline validation.
Master cooperation across 9 Core, 15 Base, and 26 Advanced modules, the Yield protocol, and extension ports.
Learn how to configure Rules/Skills and what to prompt AI agents to build flawless COE scripts.
Build a complete delivery resource from start to finish applying every framework layer.
Click any of the 50 public MIT modules below to inspect its architectural role, typed exports (types.lua), Yield/Extension Ports, Lua 5.4 integration snippet, and a ready-to-copy AI Agent Prompt.
Using Antigravity, Cursor, Claude Code, Windsurf, or GitHub Copilot? Learn how to configure the 5 Rules and 8 Official Skills of COE, avoid legacy hallucinations, and use our tested Prompt Playbook.
"Create a script where the player presses E at a marker to sell gold for $1000 and save to MySQL."
// Why this fails in FiveM Enhanced:
// 1. AI writes a permanent while true do Wait(0) loop (destroys DX12 frame budget).
// 2. AI trusts client-sent price TriggerServerEvent("sell", 1000) -> instant money exploit.
// 3. AI calls oxmysql instead of coe_database and skips ValidateSession.
"Use the coe-novo-resource and coe-evento-rede skills to create coe_gold_exchange in experimental/ with Clean Architecture (domain, adapters, application). Register the interaction zone via exports.coetarget:AddBoxZone (0.00ms idle). On the server, validate distance via Core.Platform, enforce an atomic mutex, check Core.Players.ValidateSession(source, charId, gen), remove the item via exports.coe_inventory, pay server-side price via exports.coe_economy, log in coe_audit, and run check_contracts.lua --strict."
Scaffolds the full domain/, adapters/, application/, locales/, types.lua, and unit test structure.
Implements secure flow with ValidateSession, rate limit, atomic mutex, distance check, and rollback.
Builds panels, HUDs, and tablet/phone apps with 5 themes, zero emojis (100% SVG), and TOCTOU mitigation.
Creates MariaDB tables via CoeMigrations and parameterized (?) queries or ACID transactions.
Exposes ACE-guarded public functions with LuaLS contracts in types.lua and generated reference.
Tests domain rules, handlers, and Core.Platform mocks in milliseconds outside FXServer.
Manages the experimental/ -> dev/ -> coe-framework/ lifecycle and in-game testing via coe.ps1.
Runs check_contracts --strict, HAL/locale audits, smoke boot, and check_boundary.