T1 // Core & Engine

coe_supervisor

Supervisor & Boot Orchestrator

FXServer Initialization & Lifecycle Orchestrator

HEADLESS SERVICE (NO UI)
DEPENDS ON none (root)
coe_supervisor 5 exports · 3 commands

Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.

01 // OVERVIEW

coe_supervisor is the conductor of the framework. It manages the strict boot sequence, verifies dependencies before dependent resources initialize, and monitors the health of all active threads. If a resource fails, the supervisor logs granular telemetry and can restart the component in isolation without taking down the server.

On FiveM Enhanced

Leverages the multi-threaded initialization and concurrency model of FXServer Enhanced to boot all 50 resources in fractions of a second, eliminating race conditions common in legacy frameworks.

02 // FEATURES

What the module delivers

01

Strict Boot Sequence

Guarantees the database and core state are 100% ready before loading inventory or gameplay modules.

02

Continuous Health Heartbeat

Monitors module pulse and exports live health data to server logs and administrative dashboards.

03

Graceful Shutdown

Flushes dirty player states and vehicle data atomically before terminating resource instances.

04

Zero CPU Overhead

Consumes zero CPU cycles after the bootstrap sequence completes (stable 0.00ms idle).

ARCHITECTURAL LAYERS // CLEAN ARCHITECTURE

4-Layer Isolation with 0.00 ms Idle

Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:

L4
Headless Operation (No UI)
Zero DOM · CoE UI Delegation
Headless
L3
Application & Server
Atomic locks · Rate limiting
Auth Server
L2
Platform & HAL
Core.Platform · Mock natives
Gen9 HAL
L1
Domain & ACID Database
Prepared SQL · MariaDB pool
ACID Pool
LAYER 04 // HEADLESS SERVICE

Headless Service (No Dedicated NUI)

Operates strictly within layers L1–L3 (domain, HAL, and server-authoritative application logic). Visual interactions and management flows are delegated to centralized ecosystem apps (coe_ui / coe_tablet), guaranteeing 0.00 ms idle client overhead in FiveM DX12.

Zero CEF graphic overhead: no background web pages or NUI bridges loaded
Typed public contracts (types.lua) consumed directly by external resources and UIs
Strict adherence to the Server-Authoritative model with zero direct DOM manipulation
ADMIN POWERS // OPERATION & MANAGEMENT

What this script delivers to Server Owners

Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:

🛡️
ACE Permissions
Administrative operations strictly protected by coe.staff and coe.admin principals.
IsPlayerAceAllowed(src, "coe.admin")
📊
Ledger Auditing
Relevant actions write audit records to the database through coe_audit.
exports.coe_audit:Record(severity, category, event, context)
⚡
0.00ms Idle Telemetry
Event-driven thread dispatch that stays dormant until network events fire.
Clean Architecture & HAL
03 // EXPORTS

Public API 5

Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.

exports['coe_supervisor']:List() → CoeSupervisorEntry[]|nil

Managed resources, including category, dependencies, and dependents.

No parameters.

LUA
local result = exports['coe_supervisor']:List()
exports['coe_supervisor']:Restart(name, requester) → boolean, string|nil

Restarts the resource and its dependents in the proper dependency order (executes `refresh` before starts).

ParameterType
namestring
requesterinteger|nil
LUA
local ok, detail = exports['coe_supervisor']:Restart(name, requester)
exports['coe_supervisor']:GetUpdateStatus() → CoeSupervisorUpdateStatus|nil

Returns the current state of COE Framework update checks.

No parameters.

LUA
local result = exports['coe_supervisor']:GetUpdateStatus()
exports['coe_supervisor']:CheckForUpdates(requester) → CoeSupervisorUpdateStatus|nil

Queries the official remote repository for newer COE Framework versions.

ParameterType
requesterinteger|nil
LUA
local result = exports['coe_supervisor']:CheckForUpdates(requester)
exports['coe_supervisor']:ApplyUpdate(requester) → boolean, CoeSupervisorUpdateResult|string

Downloads and applies the latest script versions from official repository to installed resources.

ParameterType
requesterinteger|nil
LUA
local ok, detail = exports['coe_supervisor']:ApplyUpdate(requester)
04 // COMMANDS

In-game commands 3

/coe_update [status|check|apply]

Shows the updater state, checks for a new release or applies the update (files verified by SHA-256 and a signed manifest). ACE command.coe_update.

coe_upgrades

Lists which basic resources were replaced by packs (from → to). server console

/coe_version

Prints the installed framework version and the latest available release.