fivemvoiceradiopma-voiceroleplay
Voice and Radio System in FiveM — Set pma-voice with M2.VoiceRange
March 22, 2026
1 min read
3 views
Voice and Radio System in FiveM
Voice communication What is good is what separates professional Roleplay servers from general servers.
pma-voice Overview
pma-voice is a proximity voice chat system that:
- Proximity-based — Hear only those nearby.
- Multiple channels — radio channels supported
- Low latency — uses WebRTC
- Easy integration — Works well with ESX.
Config pma-voice
Config = {
VoiceRanges = {
[1] = { range = 1.5, label = "Whisper" },
[2] = { range = 10.0, label = "Normal" },
[3] = { range = 20.0, label = "Shout" }
},
DefaultRange = 2,
RadioFrequency = "111",
}
M2.VoiceRange Integration
Config.TOKEN = "YOUR_LICENSE_TOKEN"
Config.Keybind = "CAPS"
Config.Ranges = {
{ range = 1.5, label = "whisper" },
{ range = 10.0, label = "normal" },
{ range = 20.0, label = "shout" }
}
-- cycle voice range
RegisterKeyMapping('cycleVoice', 'Cycle Voice Range', 'keyboard', 'CAPS')
RegisterCommand('cycleVoice', function()
local currentRange = exports['pma-voice']:getVoiceRange()
local nextRange = (currentRange % #Config.Ranges) + 1
exports['pma-voice']:setVoiceRange(Config.Ranges[nextRange].range)
exports['M2.Notify']:Notify('info', 'Voice: ' .. Config.Ranges[nextRange].label, 2000)
end, false)
Radio System
-- Enter/exit radio channel
RegisterNetEvent('radio:join')
AddEventHandler('radio:join', function(frequency)
exports['pma-voice']:addPlayerToChannel(source, tonumber(frequency))
end)
RegisterNetEvent('radio:leave')
AddEventHandler('radio:leave', function(frequency)
exports['pma-voice']:removePlayerFromChannel(source, tonumber(frequency))
end)
Tips for RP Server
- Default range = Normal (10 meters) suitable for general conversation.
- Shout no more than 30 meters Prevents immersion break
- Separate radio frequency according to faction
- Add animation while speaking through the radio
Summary
pma-voice + M2.VoiceRange provides both functionality and good UI, resulting in a more realistic RP experience for players.
Related Articles
Breaking: GTA Online อัพเดท "Money Fronts" — FiveM Server Owners ต้องทำอะไร?
Rockstar ปล่อย GTA Online อัพเดท Money Fronts มีผลกระทบต่อ FiveM servers บางส่วน นี่คือสิ่งที่ต้องทำทันทีหลังอัพเดท
Community Spotlight: Script และ Projects ที่น่าสนใจจาก FiveM Community
รวม scripts, tools และ projects ที่โดดเด่นจาก FiveM community ในช่วงที่ผ่านมา ตั้งแต่ free resources ถึง open-source projects
txAdmin อัพเดทใหม่ — Dashboard, Diagnostics และ Ban System ที่ดีขึ้น
txAdmin ซึ่งตอนนี้เป็นส่วนหนึ่งของ Cfx.re อย่างเป็นทางการ ได้รับการอัพเดทครั้งใหญ่ มี features ใหม่ที่ทำให้ Server Management ง่ายขึ้นมาก