One App per Business
The player businesses and factions become their own apps (instances).
coe_tabletCOE OS Tablet
The character's app hub: personal, work, business and illegal
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.
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.
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.
The player businesses and factions become their own apps (instances).
Up to 6 open apps with preserved state.
Shared components via coe_ui/apps.css.
Duty and Free Jobs from the basic tablet are included.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
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.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
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.
| Parameter | Type |
|---|---|
playerId | integer |
appId | string |
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.
| Parameter | Type |
|---|---|
playerId | integer |
appId | string |
action | string |
local result = exports['coe_tablet']:TabletCall(playerId, appId, action)[F3]
Abrir tablet (COE OS) · +coe_tablet_open · rebindable in FiveM key bindings
/tablet
Opens or closes the COE OS tablet (default key: F3).