T1 // Interface & NUI

coe_ui

Design System & Theme Manager

Unified Hardware-Accelerated Design System with 5 Dynamic Themes

INTERFACE // CAPTURE
Design System & Theme Manager
01 // OVERVIEW

Standardizes every player interface across the server with the Cyber-Minimalist CoE aesthetic. Provides CSS tokens, reusable UI primitives (chamfered surfaces, modal dialogs, tactical reticles), Web Audio synthesized soundscapes, and real-time switching between Moss, Ocean, Amber, Rose, and Violet themes.

On FiveM Enhanced

Hardware-accelerated rendering utilizing the updated Chromium Embedded Framework (CEF) in FiveM Enhanced (DirectX 12), ensuring 144+ FPS without frame drops.

02 // FEATURES

What the module delivers

01

5 Dynamic Themes

Moss, Ocean, Amber, Rose, and Violet switchable in real time without reloading.

02

Chamfered Surfaces

Precision 45-degree tactical polygons defining the futuristic aesthetic.

03

Synthesized Web Audio

Procedural acoustic clicks and alerts generated without loading heavy MP3 assets.

04

GPU Acceleration

DX12-backed NUI compositor layers offering minimum input latency.

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
Presentation & NUI
HTML5 · CSS tokens · CoE UI
CEF DX12
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 // PRESENTATION & NUI

Responsive NUI & CoE UI Design System

Built with vanilla HTML5, CSS3 tokens, and modern JavaScript. No heavyweight frameworks (React/Vue/Electron). Rendered directly in FiveM DX12's Chromium Embedded Framework at 0.00 ms while closed.

Five themes supported in real time through CSS variables (--coe-accent, --coe-surface)
Fully keyboard-navigable (Tab, Esc, Enter) and ARIA-accessible
Secure asynchronous communication with the FiveM client via fetch("https://...")
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_ui']:GetTheme() → string|nil

Retrieves the active theme. Server-side: server default theme; client-side: theme synchronized from server (`nil` prior to initial sync).

No parameters.

LUA
local result = exports['coe_ui']:GetTheme()
exports['coe_ui']:GetThemes() → {

Returns the list of available framework themes and the currently active theme. Server-side.

No parameters.

LUA
local result = exports['coe_ui']:GetThemes()
exports['coe_ui']:SetTheme(name) → true|string

Configures the server-wide default theme and broadcasts the change to all connected clients. Server-side; restricted to callers authorized in `UiConfig.Caller`.

ParameterType
namestring
LUA
local result = exports['coe_ui']:SetTheme(name)
exports['coe_ui']:GetAccent() → CoeAccent

Returns the accent palette selected by the player (`theme` = follow server default palette). Client-side.

No parameters.

LUA
local result = exports['coe_ui']:GetAccent()
exports['coe_ui']:SetAccent(name) → void

Configures the player's personal accent color, persists to local KVP storage, and triggers `coe_ui:accentChanged`. Client-side.

ParameterType
nameCoeAccent
LUA
exports['coe_ui']:SetAccent(name)
04 // COMMANDS

In-game commands 1

/coeui

Opens or closes the CoE UI component showcase.