T2 // Gameplay & Base

coe_talk

3D Spatial Voice Matrix & Radio

3D Directional Audio Communication with Encrypted Radio Channels

HEADLESS SERVICE (NO UI)
DEPENDS ON coe_corecoe_hud
coe_talk 15 exports · 12 commands

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

01 // OVERVIEW

Controls 3D spatial voice propagation with 3 calibrated ranges (Whisper 1.5m, Normal 5.0m, Shout 12.0m) alongside civilian and encrypted government radio frequencies. Features realistic radio mic-clicks and acoustic bandpass audio filters.

On FiveM Enhanced

Directly hooks into FiveM Enhanced native digital audio pipeline with support for hardware echo cancellation and spatial occlusion.

02 // FEATURES

What the module delivers

01

3D Spatial Audio Occlusion

Acoustic attenuation calculates real distance, building walls, and vehicle cabins.

02

Multi-Channel Tactical Radio

Open frequencies for civilians and encrypted radio channels for emergency corps.

03

Authentic Acoustic Filters

Hardware-synthesized radio bandpass filters and realistic mic-click sounds.

04

Dynamic HUD Ring

HUD voice ring pulses in green while speaking and shifts to blue on active radio transmit.

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 15

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

exports['coe_talk']:SetPlayerRadio(source, frequency) → boolean, string|nil

Assigns a player to a radio frequency (or leaves with `nil`/`0`). Restricted to `Config.Access.Resources` (defaults to `coe_mobile`) or callers with `coe.talk` ACE. Does not enforce job restrictions directly: caller validates authorization.

ParameterType
sourceinteger
frequencynumber|nil
LUA
local ok, detail = exports['coe_talk']:SetPlayerRadio(source, frequency)
exports['coe_talk']:GetPlayerRadio(source) → number|nil

Retrieves active radio frequency of a player.

ParameterType
sourceinteger
LUA
local result = exports['coe_talk']:GetPlayerRadio(source)
exports['coe_talk']:SetPlayerCall(source, callId) → boolean, string|nil

Connects player into a voice call channel (or leaves with `nil`). This is the authoritative way to join calls: client never chooses call room directly. Same access rules as `SetPlayerRadio`.

ParameterType
sourceinteger
callIdstring|nil
LUA
local ok, detail = exports['coe_talk']:SetPlayerCall(source, callId)
exports['coe_talk']:GetPlayerCall(source) → string|nil

Retrieves current voice call identifier of a player.

ParameterType
sourceinteger
LUA
local result = exports['coe_talk']:GetPlayerCall(source)
exports['coe_talk']:GetRadioMembers(frequency) → integer[]

Lists player server IDs active on a radio frequency.

ParameterType
frequencynumber
LUA
local result = exports['coe_talk']:GetRadioMembers(frequency)
exports['coe_talk']:GetCallMembers(callId) → integer[]

Lists player server IDs active in a voice call.

ParameterType
callIdstring
LUA
local result = exports['coe_talk']:GetCallMembers(callId)
exports['coe_talk']:GetVoiceRange() → number, string, string

Returns current local proximity voice mode (client-side).

No parameters.

LUA
local ok, detail = exports['coe_talk']:GetVoiceRange()
exports['coe_talk']:SetVoiceRange(modeOrDistance) → boolean

Changes voice proximity mode by id (`whisper`, `normal`, `shout`) or radius distance.

ParameterType
modeOrDistancestring|number
LUA
local result = exports['coe_talk']:SetVoiceRange(modeOrDistance)
exports['coe_talk']:GetRadioChannel() → number|nil

Returns current radio frequency of local player (client-side).

No parameters.

LUA
local result = exports['coe_talk']:GetRadioChannel()
exports['coe_talk']:SetRadioChannel(frequency) → boolean

Requests server to connect local player to radio frequency (restricted channels require jobs; see `Config.Radio.restricted`).

ParameterType
frequencynumber|nil
LUA
local result = exports['coe_talk']:SetRadioChannel(frequency)
exports['coe_talk']:GetCallChannel() → string|nil

Returns current voice call identifier of local player (client-side).

No parameters.

LUA
local result = exports['coe_talk']:GetCallChannel()
exports['coe_talk']:SetCallChannel(callId) → boolean

Leaves current call (`nil`). Joining a call is authoritative on server (`SetPlayerCall`).

ParameterType
callIdnil
LUA
local result = exports['coe_talk']:SetCallChannel(callId)
exports['coe_talk']:IsTalking() → boolean

Returns whether local player is actively speaking over proximity voice (client-side).

No parameters.

LUA
local result = exports['coe_talk']:IsTalking()
exports['coe_talk']:IsRadioTransmitting() → boolean

Returns whether local player is currently transmitting over radio (client-side).

No parameters.

LUA
local result = exports['coe_talk']:IsRadioTransmitting()
exports['coe_talk']:SetVoiceVolume(volume) → boolean

Sets incoming voice volume (0-100).

ParameterType
volumenumber
LUA
local result = exports['coe_talk']:SetVoiceVolume(volume)
04 // COMMANDS

In-game commands 12

[N]

Talk (microphone) · +talk · rebindable in FiveM key bindings

[PAGEUP]

Increase voice range · coe_talk:voiceUp · rebindable in FiveM key bindings

[PAGEDOWN]

Decrease voice range · coe_talk:voiceDown · rebindable in FiveM key bindings

[CAPITAL]

Talk on radio · +radioptt · rebindable in FiveM key bindings

/baixarvoz

Decreases voice range.

/proximidade

Cycles to the next voice range.

/ptt

Toggles between push-to-talk and voice activation.

/radio <frequência|off>

Joins a radio frequency; off or 0 turns the radio off.

/radiodesligar

Turns the radio off.

/radiovolume <0-100>

Sets the radio volume.

/subirvoz

Increases voice range.

/voz

Cycles to the next voice range.