T2 // Interface & NUI

coe_appearance

Visual Customization & Wardrobe

Gen9 Shaders Character Creator & Precision Wardrobe System

INTERFACE // CAPTURE
Visual Customization & Wardrobe
01 // OVERVIEW

Complete facial sculpting, hairstyle, tattoo, and clothing editing suite. Offers 360° camera rotation, precise regional zoom (head, torso, feet), closet saved outfit management, and one-click career duty uniforms.

On FiveM Enhanced

DirectX 12 fabric shaders and facial lighting eliminate texture stretching, shadow artifacts, and Alpha Blending seams.

02 // FEATURES

What the module delivers

01

Genetic Morphing & Face Sliders

Millimeter-grade blending of maternal and paternal features with fine slider controls.

02

Saved Wardrobe Closets

Save and name multiple outfits accessible inside properties and safehouses.

03

Free 3D Camera Controls

Effortless zoom on face, hands, and feet with smooth 360-degree rotation.

04

Duty Outfit Integration

Direct integration with career systems for job uniform deployment.

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 10

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

exports['coe_appearance']:OpenCreator(options) → boolean

Opens the character creator. Results are dispatched via local events `coe_appearance:creatorSubmit` and `coe_appearance:creatorCancelled`.

ParameterType
optionsCoeAppearanceCreatorOptions
LUA
local result = exports['coe_appearance']:OpenCreator(options)
exports['coe_appearance']:CloseCreator() → void

Closes the creator interface leaving the screen dark: caller prepares the next scene and triggers the fade in.

No parameters.

LUA
exports['coe_appearance']:CloseCreator()
exports['coe_appearance']:CreatorError(message) → void

Displays an error prompt on the creator UI (e.g. server persistence failure).

ParameterType
messagestring|nil
LUA
exports['coe_appearance']:CreatorError(message)
exports['coe_appearance']:IsCreatorOpen() → boolean

Returns whether the character creator is currently active.

No parameters.

LUA
local result = exports['coe_appearance']:IsCreatorOpen()
exports['coe_appearance']:Apply(ped, appearance) → boolean

Applies the appearance payload to a ped that matches the target model (does not swap ped model).

ParameterType
pedinteger
appearancetable
LUA
local result = exports['coe_appearance']:Apply(ped, appearance)
exports['coe_appearance']:ApplyToPlayer(appearance) → boolean

Swaps the local player ped model and applies the full appearance dataset.

ParameterType
appearancetable
LUA
local result = exports['coe_appearance']:ApplyToPlayer(appearance)
exports['coe_appearance']:CreatePed(appearance, x, y, z, heading, gender) → integer|nil

Creates a local (non-networked) ped for cinematic scenes, with custom appearance or default gender clothing. Caller must delete entity when done.

ParameterType
appearancetable|nil
xnumber
ynumber
znumber
headingnumber|nil
gender'male'|'female'|nil
LUA
local result = exports['coe_appearance']:CreatePed(appearance, x, y, z, heading, gender)
exports['coe_appearance']:Normalize(raw) → table|nil

Validates and normalizes an incoming appearance table (database or foreign resource). Returns `nil` when invalid.

ParameterType
rawany
LUA
local result = exports['coe_appearance']:Normalize(raw)
exports['coe_appearance']:Default(gender) → table

Returns initial default appearance for the given gender.

ParameterType
gender'male'|'female'
LUA
local result = exports['coe_appearance']:Default(gender)
exports['coe_appearance']:Version() → integer

Format schema version of appearance payload (`AppearanceSchema.Version`).

No parameters.

LUA
local result = exports['coe_appearance']:Version()
04 // COMMANDS

In-game commands 1

/coe_fotos_roupas [male|female] [refazer]

Generates the clothing thumbnails used by the character creator (requires the configured ACE).