3D Spatial Audio Occlusion
Acoustic attenuation calculates real distance, building walls, and vehicle cabins.
coe_talk3D Spatial Voice Matrix & Radio
3D Directional Audio Communication with Encrypted Radio Channels
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.
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.
Directly hooks into FiveM Enhanced native digital audio pipeline with support for hardware echo cancellation and spatial occlusion.
Acoustic attenuation calculates real distance, building walls, and vehicle cabins.
Open frequencies for civilians and encrypted radio channels for emergency corps.
Hardware-synthesized radio bandpass filters and realistic mic-click sounds.
HUD voice ring pulses in green while speaking and shifts to blue on active radio transmit.
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_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.
| Parameter | Type |
|---|---|
source | integer |
frequency | number|nil |
local ok, detail = exports['coe_talk']:SetPlayerRadio(source, frequency)exports['coe_talk']:GetPlayerRadio(source)
→ number|nil
Retrieves active radio frequency of a player.
| Parameter | Type |
|---|---|
source | integer |
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`.
| Parameter | Type |
|---|---|
source | integer |
callId | string|nil |
local ok, detail = exports['coe_talk']:SetPlayerCall(source, callId)exports['coe_talk']:GetPlayerCall(source)
→ string|nil
Retrieves current voice call identifier of a player.
| Parameter | Type |
|---|---|
source | integer |
local result = exports['coe_talk']:GetPlayerCall(source)exports['coe_talk']:GetRadioMembers(frequency)
→ integer[]
Lists player server IDs active on a radio frequency.
| Parameter | Type |
|---|---|
frequency | number |
local result = exports['coe_talk']:GetRadioMembers(frequency)exports['coe_talk']:GetCallMembers(callId)
→ integer[]
Lists player server IDs active in a voice call.
| Parameter | Type |
|---|---|
callId | string |
local result = exports['coe_talk']:GetCallMembers(callId)exports['coe_talk']:GetVoiceRange()
→ number, string, string
Returns current local proximity voice mode (client-side).
No parameters.
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.
| Parameter | Type |
|---|---|
modeOrDistance | string|number |
local result = exports['coe_talk']:SetVoiceRange(modeOrDistance)exports['coe_talk']:GetRadioChannel()
→ number|nil
Returns current radio frequency of local player (client-side).
No parameters.
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`).
| Parameter | Type |
|---|---|
frequency | number|nil |
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.
local result = exports['coe_talk']:GetCallChannel()exports['coe_talk']:SetCallChannel(callId)
→ boolean
Leaves current call (`nil`). Joining a call is authoritative on server (`SetPlayerCall`).
| Parameter | Type |
|---|---|
callId | nil |
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.
local result = exports['coe_talk']:IsTalking()exports['coe_talk']:IsRadioTransmitting()
→ boolean
Returns whether local player is currently transmitting over radio (client-side).
No parameters.
local result = exports['coe_talk']:IsRadioTransmitting()exports['coe_talk']:SetVoiceVolume(volume)
→ boolean
Sets incoming voice volume (0-100).
| Parameter | Type |
|---|---|
volume | number |
local result = exports['coe_talk']:SetVoiceVolume(volume)[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.