T1 // Core & Engine

coe_audit

Immutable Audit & Anti-Cheat Ledger

Cryptographic Ledger of Every Server-Side Transaction

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_supervisorcoe_database
coe_audit 2 exports · 0 commands

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

01 // OVERVIEW

No currency, bank transfer, or inventory item moves without strict validation and immutability logging in coe_audit. Generates cryptographic hashes for transactions creating a tamper-proof forensic trail. If client injection attempts to spawn duplicated items, the supervisor intercepts the anomaly immediately.

On FiveM Enhanced

High-throughput parallel thread processing allows auditing thousands of actions per second without causing server microstutters.

02 // FEATURES

What the module delivers

01

Immutable Audit Trail

Complete historical record of who bought, sold, dropped, or transferred any asset.

02

Anti-Duplication Protocol

Mathematical state-conservation checks preventing item and currency cloning exploits.

03

Anomaly Detection

Automated telemetry flags transfers outside normal statistical boundaries.

04

Forensic Exports

Detailed millisecond-stamped reports for staff moderation and server investigations.

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 2

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

exports['coe_audit']:Record(severity, category, event, context) → boolean, string|nil

Enqueues an audit event and returns immediately; write operations are batched asynchronously. The calling resource is automatically registered and must be present in `AllowedResources`.

ParameterType
severitystring
categorystring
eventstring
contexttable|nil
LUA
local ok, detail = exports['coe_audit']:Record(severity, category, event, context)
exports['coe_audit']:IsReady() → boolean

Verifies if persistence is ready and database migrations have been successfully applied.

No parameters.

LUA
local result = exports['coe_audit']:IsReady()
04 // COMMANDS

In-game commands 0

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