Semantic Variants
Standardized accent colors and icons for Success, Error, Warning, and Tactical Alerts.
coe_notifyTactical Toasts & Notifications
Visual Notification Engine with Procedural Sound Feedback
Presents sleek toast notifications on screen edges supporting 4 distinct variants (Success, Info, Warning, Error, and Tactical Alert). Toasts feature CoE UI typography, hardware-accelerated animations, and synthesized audio cues in real time.
DirectX 12 NUI compositor cleanly stacks toasts without frame drops or memory accumulation in the DOM.
Standardized accent colors and icons for Success, Error, Warning, and Tactical Alerts.
Deduplicates messages and stacks notifications smoothly to eliminate screen spam.
Short procedural audio frequencies alert players without overpowering game audio.
Transparent caller interface callable from both client-side and server-side scripts.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
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.
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_notify']:Notify(playerId, kind, message, duration)
→ boolean, string|nil
Pushes an animated UI toast notification to a specific player. Server-side; authorized resources only.
| Parameter | Type |
|---|---|
playerId | integer |
kind | CoeNotifyKind |
message | string |
duration | integer|nil |
local ok, detail = exports['coe_notify']:Notify(playerId, kind, message, duration)exports['coe_notify']:Show(kind, message, duration)
→ boolean, string|nil
Displays a UI toast notification locally on the client. Client-side.
| Parameter | Type |
|---|---|
kind | CoeNotifyKind |
message | string |
duration | integer|nil |
local ok, detail = exports['coe_notify']:Show(kind, message, duration)exports['coe_notify']:Prompt(data)
→ boolean, string|nil
Shows (or clears, with nil) the calling resource's standard interaction prompt. Client-side; one prompt per resource.
| Parameter | Type |
|---|---|
data | CoeNotifyPrompt|nil |
local ok, detail = exports['coe_notify']:Prompt(data)This module registers no commands: it is driven by exports and events.