Strict Boot Sequence
Guarantees the database and core state are 100% ready before loading inventory or gameplay modules.
coe_supervisorSupervisor & Boot Orchestrator
FXServer Initialization & Lifecycle Orchestrator
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.
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.
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.
Guarantees the database and core state are 100% ready before loading inventory or gameplay modules.
Monitors module pulse and exports live health data to server logs and administrative dashboards.
Flushes dirty player states and vehicle data atomically before terminating resource instances.
Consumes zero CPU cycles after the bootstrap sequence completes (stable 0.00ms idle).
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
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.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
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.
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).
| Parameter | Type |
|---|---|
name | string |
requester | integer|nil |
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.
local result = exports['coe_supervisor']:GetUpdateStatus()exports['coe_supervisor']:CheckForUpdates(requester)
→ CoeSupervisorUpdateStatus|nil
Queries the official remote repository for newer COE Framework versions.
| Parameter | Type |
|---|---|
requester | integer|nil |
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.
| Parameter | Type |
|---|---|
requester | integer|nil |
local ok, detail = exports['coe_supervisor']:ApplyUpdate(requester)/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.