T3 // COE OS & Communication

coe_telecom

Mobile Carrier

Prepaid and postpaid lines, rates, bills and the My Line app

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_corecoe_databasecoe_loggingcoe_notifycoe_economy
coe_telecom 13 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 carrier: prepaid and postpaid lines per number (SIM), voice, video and message rating, top-ups in the app, bills with automatic debit, suspension for unpaid bills and plan changes. It is optional: without it, calls and messages are free.

On FiveM Enhanced

The caller pays, per started minute with a grace period; on prepaid the call drops when credit runs out.

02 // FEATURES

What the module delivers

01

Prepaid & Postpaid

Plans with allowance, overage or unlimited.

02

Bills

Automatic debit, grace period and line suspension.

03

SIM Line

The SIM holder pays; whoever holds it uses it.

04

Optional

Without the carrier, the phone works for free.

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 13

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

exports['coe_telecom']:Authorize(number, kind, holder) → any

Checks whether the phone can place a call or send a message on line number (the device's SIM). holder is the SIM owner (nil means anonymous). Returns { ok, maxSeconds } or { ok = false, error }.

ParameterType
numberany
kindany
holderany
LUA
local result = exports['coe_telecom']:Authorize(number, kind, holder)
exports['coe_telecom']:Charge(number, kind, seconds, peer, holder) → any

Records completed usage (a call ended or a message was sent). seconds applies only to voice and video.

ParameterType
numberany
kindany
secondsany
peerany
holderany
LUA
local result = exports['coe_telecom']:Charge(number, kind, seconds, peer, holder)
exports['coe_telecom']:LineOf(number) → any

Returns a phone number's line summary for other resources.

ParameterType
numberany
LUA
local result = exports['coe_telecom']:LineOf(number)
exports['coe_telecom']:TabletCall(playerId, appId, action, payload) → any

Export server TabletCall (server/main.lua).

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

Export server TabletVisible (server/main.lua).

ParameterType
playerIdany
appIdany
LUA
local result = exports['coe_telecom']:TabletVisible(playerId, appId)
exports['coe_telecom']:EvaluateSignal(carrierId, coords, context) → table

Avalia a qualidade de sinal, banda (5G/4G/3G/SAT/FIBRA/OFFLINE) e latência para uma operadora e coordenada.

ParameterType
carrierIdstring
coordstable|nil
contexttable|nil
LUA
local result = exports['coe_telecom']:EvaluateSignal(carrierId, coords, context)
exports['coe_telecom']:CanAccessBandFeature(band, feature) → boolean

Verifica se a banda atual suporta a feature requisitada (text, voice, video, high_freq_market, remote_rig, cloud_sync).

ParameterType
bandstring
featurestring
LUA
local result = exports['coe_telecom']:CanAccessBandFeature(band, feature)
exports['coe_telecom']:SabotageTower(towerId, durationSec) → boolean,

Sabota fisicamente uma torre de celular (ERB) pelo tempo determinado.

ParameterType
towerIdstring
durationSecnumber|nil
LUA
local ok, detail = exports['coe_telecom']:SabotageTower(towerId, durationSec)
exports['coe_telecom']:RepairTower(towerId) → boolean

Repara imediatamente uma torre de celular (ERB) sabotada.

ParameterType
towerIdstring
LUA
local result = exports['coe_telecom']:RepairTower(towerId)
exports['coe_telecom']:ActivateFiber(spaceKey) → boolean

Ativa um contrato de fibra óptica dedicada Wi-Fi 6 para um espaço (imóvel/empresa).

ParameterType
spaceKeystring
LUA
local result = exports['coe_telecom']:ActivateFiber(spaceKey)
exports['coe_telecom']:HasActiveFiber(spaceKey) → boolean

Verifica se o espaço possui fibra óptica dedicada ativa.

ParameterType
spaceKeystring
LUA
local result = exports['coe_telecom']:HasActiveFiber(spaceKey)
exports['coe_telecom']:AdminOverview() → table

Retorna o panorama em memória das ERBs (3G/4G/5G), fibras ópticas e operadoras para o painel admin.

No parameters.

LUA
local result = exports['coe_telecom']:AdminOverview()
04 // COMMANDS

In-game commands 0

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