Prepaid & Postpaid
Plans with allowance, overage or unlimited.
coe_telecomMobile Carrier
Prepaid and postpaid lines, rates, bills and the My Line app
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.
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.
The caller pays, per started minute with a grace period; on prepaid the call drops when credit runs out.
Plans with allowance, overage or unlimited.
Automatic debit, grace period and line suspension.
The SIM holder pays; whoever holds it uses it.
Without the carrier, the phone works for free.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
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.
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_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 }.
| Parameter | Type |
|---|---|
number | any |
kind | any |
holder | any |
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.
| Parameter | Type |
|---|---|
number | any |
kind | any |
seconds | any |
peer | any |
holder | any |
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.
| Parameter | Type |
|---|---|
number | any |
local result = exports['coe_telecom']:LineOf(number)exports['coe_telecom']:TabletCall(playerId, appId, action, payload)
→ any
Export server TabletCall (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
appId | any |
action | any |
payload | any |
local result = exports['coe_telecom']:TabletCall(playerId, appId, action, payload)exports['coe_telecom']:TabletVisible(playerId, appId)
→ any
Export server TabletVisible (server/main.lua).
| Parameter | Type |
|---|---|
playerId | any |
appId | any |
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.
| Parameter | Type |
|---|---|
carrierId | string |
coords | table|nil |
context | table|nil |
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).
| Parameter | Type |
|---|---|
band | string |
feature | string |
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.
| Parameter | Type |
|---|---|
towerId | string |
durationSec | number|nil |
local ok, detail = exports['coe_telecom']:SabotageTower(towerId, durationSec)exports['coe_telecom']:RepairTower(towerId)
→ boolean
Repara imediatamente uma torre de celular (ERB) sabotada.
| Parameter | Type |
|---|---|
towerId | string |
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).
| Parameter | Type |
|---|---|
spaceKey | string |
local result = exports['coe_telecom']:ActivateFiber(spaceKey)exports['coe_telecom']:HasActiveFiber(spaceKey)
→ boolean
Verifica se o espaço possui fibra óptica dedicada ativa.
| Parameter | Type |
|---|---|
spaceKey | string |
local result = exports['coe_telecom']:HasActiveFiber(spaceKey)exports['coe_telecom']:SetVehicleOrbitlink(plate, active)
→ boolean
Instala ou remove o kit veicular de antena satelital OrbitLink em uma placa.
| Parameter | Type |
|---|---|
plate | string |
active | boolean |
local result = exports['coe_telecom']:SetVehicleOrbitlink(plate, active)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.
local result = exports['coe_telecom']:AdminOverview()This module registers no commands: it is driven by exports and events.