T3 // COE OS & Communication

coe_tablet

COE OS Tablet

The character's app hub: personal, work, business and illegal

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_corecoe_loggingcoe_notifycoe_uicoe_businesses
coe_tablet 2 exports · 2 commands

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

01 // OVERVIEW

The character's tablet (F3, /tablet or /trabalho) and the hub for everything they own: every system is an app and every business or faction they belong to enables its own app. Personal, Apps, Work, Business and Illegal sections, a dock with up to 6 apps, multitasking with preserved state and a control center (brightness, size and wallpaper). Replaces the basic work tablet (coe_workpad), with the Duty and Free Jobs apps in the Work group.

On FiveM Enhanced

Apps from other resources register through TabletVisible/TabletCall and every action is revalidated on the server: losing the job or rank closes the app immediately.

02 // FEATURES

What the module delivers

01

One App per Business

The player businesses and factions become their own apps (instances).

02

Multitasking

Up to 6 open apps with preserved state.

03

Same Look as the Phone

Shared components via coe_ui/apps.css.

04

Workpad Upgrade

Duty and Free Jobs from the basic tablet are included.

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 2

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

exports['coe_tablet']:TabletVisible(playerId, appId) → boolean

Checks whether a tablet-owned app (Duty or Free Jobs, from the basic work tablet) should be shown. Only coe_tablet may call it (ownerCheck). duty requires coe_businesses; freejobs requires coe_jobs.

ParameterType
playerIdinteger
appIdstring
LUA
local result = exports['coe_tablet']:TabletVisible(playerId, appId)
exports['coe_tablet']:TabletCall(playerId, appId, action) → table

Runs actions for tablet-owned apps. Only coe_tablet may call it (the app list and access are already checked). duty: overview, clockOut. freejobs: list. Errors: forbidden, invalid_action, no_character, app_unavailable, not_on_duty.

ParameterType
playerIdinteger
appIdstring
actionstring
LUA
local result = exports['coe_tablet']:TabletCall(playerId, appId, action)
04 // COMMANDS

In-game commands 2

[F3]

Abrir tablet (COE OS) · +coe_tablet_open · rebindable in FiveM key bindings

/tablet

Opens or closes the COE OS tablet (default key: F3).