T1 // Interface & NUI

coe_notify

Tactical Toasts & Notifications

Visual Notification Engine with Procedural Sound Feedback

INTERFACE // TOASTS
SUCCESSTransfer of $15,000 completed.
WARNINGFuel below 12%. Find a gas station.
SYSTEMYou are now on duty.
01 // OVERVIEW

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.

On FiveM Enhanced

DirectX 12 NUI compositor cleanly stacks toasts without frame drops or memory accumulation in the DOM.

02 // FEATURES

What the module delivers

01

Semantic Variants

Standardized accent colors and icons for Success, Error, Warning, and Tactical Alerts.

02

Smart Queuing

Deduplicates messages and stacks notifications smoothly to eliminate screen spam.

03

Synthesized Audio Cues

Short procedural audio frequencies alert players without overpowering game audio.

04

Unified Dual API

Transparent caller interface callable from both client-side and server-side scripts.

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 3

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.

ParameterType
playerIdinteger
kindCoeNotifyKind
messagestring
durationinteger|nil
LUA
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.

ParameterType
kindCoeNotifyKind
messagestring
durationinteger|nil
LUA
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.

ParameterType
dataCoeNotifyPrompt|nil
LUA
local ok, detail = exports['coe_notify']:Prompt(data)
04 // COMMANDS

In-game commands 0

This module registers no commands: it is driven by exports and events.