T3 // COE OS & Communication

coe_apps

COE OS App Store

Store, Jobs, Classifieds, Insta and Studio for phone and tablet

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_corecoe_databasecoe_logging
coe_apps 8 exports · 0 commands

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

01 // OVERVIEW

The COE OS app store, shared by the tablet and the smartphone. Paid apps are weekly credit-card subscriptions paid through the phone Wallet. Ships the Jobs, Classifieds (listings with a fee and duration), Insta (photo feed with likes, using the game camera through screenshot-basic) and Studio (photo editor with filters, adjustments, crop, text and frames) apps.

On FiveM Enhanced

Photos are downscaled on the device, validated on the server (JPEG, size and rate) and stored in the database or on a configurable HTTPS host.

02 // FEATURES

What the module delivers

01

Weekly Subscriptions

Recurring charge on the card chosen in the Wallet.

02

Insta

Photo feed with likes and pagination.

03

Classifieds

Listings by category with fee, duration and per-character limit.

04

Studio

Full photo editor, processed on the device.

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 8

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

exports['coe_apps']:ClaimPhoto(playerId, token) → any

Stores a photo submitted by a device using its upload token and returns { ok, image } (media:<id> or an HTTPS URL).

ParameterType
playerIdany
tokenany
LUA
local result = exports['coe_apps']:ClaimPhoto(playerId, token)
exports['coe_apps']:DeletePhoto(image) → any

Export server DeletePhoto (server/main.lua).

ParameterType
imageany
LUA
local result = exports['coe_apps']:DeletePhoto(image)
exports['coe_apps']:HasApp(playerId, appId, device) → any

Checks whether the character has installed a store app on the device. Used by other resources with store apps, such as coe_amzg.

ParameterType
playerIdany
appIdany
deviceany
LUA
local result = exports['coe_apps']:HasApp(playerId, appId, device)
exports['coe_apps']:PhotoData(id) → any

Returns the content of a photo stored in the database (media:<id>).

ParameterType
idany
LUA
local result = exports['coe_apps']:PhotoData(id)
exports['coe_apps']:StorePhoto(image) → any

Export client StorePhoto (client/camera.lua).

ParameterType
imageany
LUA
local result = exports['coe_apps']:StorePhoto(image)
exports['coe_apps']:TabletCall(playerId, appId, action, payload) → any

Export server TabletCall (server/main.lua).

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

Export server TabletVisible (server/main.lua).

ParameterType
playerIdany
appIdany
LUA
local result = exports['coe_apps']:TabletVisible(playerId, appId)
exports['coe_apps']:TakePhoto() → any

Export client TakePhoto (client/camera.lua).

No parameters.

LUA
local result = exports['coe_apps']:TakePhoto()
04 // COMMANDS

In-game commands 0

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