01
What pma-voice does
FiveM ships with a Mumble voice server: there is no separate voice server to install. pma-voice, written by AvarianKnight, builds on it to handle three things:
- proximity voice: you only hear nearby players, with three ranges (whisper, normal, shout) that each player switches with a key;
- radio: numbered channels where you talk by holding a key, whatever the distance;
- calls: a private channel between several players, opened by your phone script.
pma-voice does not coexist with another voice system. vMenu's built-in voice chat must be turned off (see vMenu), and no other script should change Mumble's voice range (the MumbleSetTalkerProximity, NetworkSetTalkerProximity and related functions): the pma-voice README warns that this breaks it.
FiveM for GTA V Enhanced. This guide applies to classic FiveM. In FiveM for GTA V Enhanced, Cfx.re replaced Mumble with a new voice system: the Mumble functions still go through, but they are deprecated and due to be removed. Check the pma-voice repository for its support status before switching.
02
Install pma-voice
It may already be there. The official txAdmin recipes for ESX, QBCore and Qbox install pma-voice, in a [voice] or [standalone] folder. Look for a pma-voice folder in resources before adding a second one.
Otherwise:
- Download the resource from its official GitHub repository,
AvarianKnight/pma-voice. The official recipes use the main branch: the repository's "Releases" page shows an older version.
- Put the folder in
resources and name it exactly pma-voice: a GitHub archive unpacks as pma-voice-main, while other scripts call its functions by its name (exports['pma-voice']).
- Write your
setr voice_… settings in server.cfg, then the start line, before the radio and phone scripts that use it.
- Fully restart the server.
ensure pma-voice
OneSync is required. pma-voice's fxmanifest.lua declares the /onesync dependency: without OneSync, the resource refuses to start and nobody can hear anyone. The setting is explained in the OneSync guide, and line order in FiveM's server.cfg.
03
Convars and voice ranges
Everything is set with convars in server.cfg, using setr: the value is also sent to players, which pma-voice needs. Only write a line to change a default value. Here are the options documented in the README, with their default values, except for native audio:
# Audio: only one of these options at a time
setr voice_useNativeAudio true
# Interface and keys
setr voice_enableUi 1
setr voice_defaultCycle "F11"
setr voice_defaultRadio "LMENU"
setr voice_defaultVoiceMode 2
# Radio and calls
setr voice_enableRadios 1
setr voice_enableCalls 1
setr voice_enableSubmix 1
setr voice_enableRadioAnim 1
setr voice_defaultRadioVolume 30
setr voice_defaultCallVolume 60
voice_useNativeAudio: uses the game's audio (3D sound, echo, reverb). It is required for the radio and phone effects (the "submixes"). Do not enable voice_use2dAudio or voice_use3dAudio at the same time. If none of these three options is set, pma-voice turns native audio on by itself.
voice_useSendingRangeOnly: only hear players within your range, which according to the README stops people from connecting to the Mumble server to listen in or troll. Sources disagree: the README recommends enabling it, but recent pma-voice versions print a console warning recommending false, and the Qbox recipe leaves it off. Follow your version's message.
voice_defaultVoiceMode: the range on joining (1 whisper, 2 normal, 3 shout).
voice_defaultCycle and voice_defaultRadio: the keys to switch range (F11) and talk on the radio (LMENU, the left Alt key). A change only applies to new players: others change the key in the game settings, under FiveM's key bindings, in "pma-voice".
- Volumes are written as whole numbers from 1 to 100. A decimal value (
0.3) triggers a warning, and pma-voice falls back to the defaults.
Ranges. The three ranges are defined in the resource's shared.lua file, in the Cfg.voiceModes table, in game units (roughly metres): 3 to whisper, 7 to talk and 15 to shout without native audio; 1.5, 3 and 6 with native audio, which carries further. Change these numbers and write down your values: a pma-voice update replaces the file. With setr voice_enableProximityCycle 0, players stay on the first range.
04
Radio, calls and moderation
pma-voice manages channels, not the radio item or the phone app: other resources (your framework's radio, your phone) call it through its exported functions:
-- client side: join radio channel 1, then leave it
exports['pma-voice']:setRadioChannel(1)
exports['pma-voice']:setRadioChannel(0)
-- server side: put a player in call number 5
exports['pma-voice']:setPlayerCall(source, 5)
- Talking on the radio: once in a channel, hold the radio key (left Alt by default).
setr voice_enableRadioAnim 0 removes the hand-on-shoulder-mic animation.
- Reserving a channel, for example for the police: on the server,
addChannelCheck sets an access condition. A player who does not meet it is removed from the channel.
- Older scripts: pma-voice declares itself as a replacement for
mumble-voip and tokovoip and provides some of their functions (SetRadioChannel, SetCallChannel). A script written for them may therefore work: test it.
- Volume: each player sets the radio and call volume with
/vol followed by a number from 1 to 100.
- Muting:
/muteply followed by the player's number and a duration in seconds (900 by default) mutes their voice; the same command unmutes it. It requires an ACE permission.
-- server side: channel 1 reserved for players with the radio.police permission
exports['pma-voice']:addChannelCheck(1, function(source)
return IsPlayerAceAllowed(source, 'radio.police')
end)
# server.cfg: allow /muteply for the admin group
add_ace group.admin command.muteply allow
Radio and phone scripts are installed like any other resource: see installing a FiveM script, and for those specific to your framework, ESX, QBCore or Qbox.
05
Common problems
- Nobody can hear anyone: check the console at startup. If pma-voice does not start, the cause is often OneSync being off or a badly named folder (
pma-voice-main). Also check that only one voice system is running.
- A single player cannot be heard: the problem is almost always on their side. They need to enable voice chat and pick the right microphone in the game settings (Pause menu, Settings, Voice Chat), check that Windows allows microphone access and, in push-to-talk mode, hold the key set in those settings.
- Voice cuts out with distance: that is proximity. Switch range with F11 or increase the distances in
shared.lua. If voice cuts out at short range, try setr voice_useSendingRangeOnly false and look for a script that changes the voice range.
- No radio or phone effect: submixes need
voice_useNativeAudio true and voice_enableSubmix 1.
- The new key does not apply: this is normal for players who have already joined; they change it in their settings.
- Volumes back to their defaults: a decimal value in
voice_defaultRadioVolume or voice_defaultCallVolume. Write a whole number.
To dig deeper, setr voice_debugMode 1 prints basic logs, and 4 detailed logs. Other console messages are explained in FiveM server errors, and the live console can be read in txAdmin.
06
On CloudFive
On our FiveM hosting plans, from €2.50 per month:
- ESX, QBCore or Qbox in one click, with a MariaDB database; then check in
resources whether pma-voice is already there before adding one;
- txAdmin included and the console, to read pma-voice's messages at startup;
- files (
server.cfg, shared.lua) are edited from the customer area manager.cloudfive.fr or over SFTP, with backups to roll back;
- the licence key: a shared Patreon key is provided at no extra cost, limited to 48 players; beyond that, take your own Element Club subscription on the Cfx.re portal.
The server is ready in about 30 seconds, in France, on AMD Ryzen 9 9950X with DDR5 memory and NVMe storage, on our own network (AS218808), with Anti-DDoS Premium included and a FiveM-specific profile. Monthly, no commitment, with French-speaking support 7 days a week by ticket, on Discord and by phone.
07
Frequently asked questions
How do I install pma-voice on a FiveM server?
Put the folder in resources and name it exactly pma-voice, enable OneSync, then add ensure pma-voice to server.cfg before the radio and phone scripts. If you installed ESX, QBCore or Qbox with their official txAdmin recipe, pma-voice is probably already there.
Does pma-voice need OneSync?
Yes. Its fxmanifest.lua declares the /onesync dependency: without OneSync, the resource refuses to start and voice chat does not work. Enable OneSync in txAdmin or in server.cfg, then restart the server.
How do I change the voice range with pma-voice?
The three ranges (whisper, normal, shout) are in the Cfg.voiceModes table of the shared.lua file, in game units: 3, 7 and 15 without native audio. Change these values and write them down, since a pma-voice update replaces the file, then restart the server.
Why can a player not be heard on pma-voice?
Most often, voice chat is turned off or the wrong microphone is selected in the game settings, or Windows blocks microphone access. If only one player is affected, the server is not the cause. If nobody can hear anyone, check in the console that pma-voice started correctly.
Which key is used to talk on the radio with pma-voice?
By default, the left Alt key (LMENU), once in a radio channel. The server can change it with setr voice_defaultRadio, but only for new players. Others change it in FiveM's key bindings, under pma-voice.