T3 // COE OS & Communication

coe_mail

COE OS Mail

@correio.coe accounts, inboxes and system e-mails

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_corecoe_databasecoe_logging
coe_mail 3 exports · 0 commands

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

01 // OVERVIEW

E-mail app for the smartphone and tablet, installed on every device. Each character creates up to 3 accounts on the public domain, with a password (stored as a hash), signature and display name; anyone with the password can sign in on any device. Other resources send system e-mails through the Send export.

On FiveM Enhanced

Accounts are tied to address and password, not to a character: an account can be shared, lost or broken into in roleplay.

02 // FEATURES

What the module delivers

01

Multiple Accounts

Up to 3 accounts per character, reserved names blocked.

02

Any Device

Whoever knows the password signs in; a reset signs out other devices.

03

System Mail

Send export for notices from other resources.

04

Signature

Display name and signature on new messages.

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 3

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

exports['coe_mail']:Send(from, to, subject, body) → any

Sends a system email, such as a notification from another resource. from: { address, name }; to: an address or list. Returns { ok, bounced } or { ok = false, error }.

ParameterType
fromany
toany
subjectany
bodyany
LUA
local result = exports['coe_mail']:Send(from, to, subject, body)
exports['coe_mail']:TabletCall(playerId, appId, action, payload) → any

Export server TabletCall (server/main.lua).

ParameterType
playerIdany
appIdany
actionany
payloadany
LUA
local result = exports['coe_mail']:TabletCall(playerId, appId, action, payload)
exports['coe_mail']:TabletVisible(playerId, appId) → any

Export server TabletVisible (server/main.lua).

ParameterType
playerIdany
appIdany
LUA
local result = exports['coe_mail']:TabletVisible(playerId, appId)
04 // COMMANDS

In-game commands 0

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