Set up GameVox proximity voice on a FiveM server
Extract the gamevox resource into resources, add set onesync on and ensure gamevox to server.cfg, and restart. Players just run GameVox.
Put the gamevox resource in resources/, add two lines to server.cfg and restart. Players run the GameVox desktop app and join the same voice channel.
The server needs OneSync enabled.
Install
- Download
gamevox-fivem.zipfrom the FiveM integration page. - Extract the
gamevoxfolder intoresources/. - Add to
server.cfg:
set onesync on
ensure gamevox - Restart the server. The console shows:
[Gamevox] Server started. OneSync is enabled. Voice ranges and keys
Edit config.lua in the gamevox folder:
Config.VoiceRanges = { 3.0, 8.0, 15.0, 32.0 } -- meters
Config.DefaultVoiceRangeIndex = 2 -- 1-based, 2 = 8m
Config.VoiceRangeKey = "F1"
Config.UpdateInterval = 280 -- milliseconds
Config.ShowVoiceRangeNotification = true
Config.MegaphoneRange = 100.0
Config.MegaphoneKey = "B" -- hold to use The keys are only defaults. Players can rebind Cycle Gamevox Voice Range and Gamevox Megaphone (Hold) in FiveM's Settings > Key Bindings.
Death and name scripts
Call these server exports with the player's server ID:
exports['gamevox']:SetPlayerAlive(serverId, false) -- on death
exports['gamevox']:SetPlayerAlive(serverId, true) -- on respawn
exports['gamevox']:SetPlayerGameName(serverId, "John_Doe")
exports['gamevox']:GetPlayerGameName(serverId) Dead players are muted until set alive again.
For players
- Install the GameVox desktop app.
- Join the same GameVox voice channel as the other players.
- Join the FiveM server. GameVox turns on proximity voice by itself.
- Press F1 to cycle 3m, 8m (default), 15m and 32m. Hold B for the 100m megaphone.
Troubleshooting
- "[Gamevox] ERROR: OneSync is not enabled!": the next line prints the current
onesyncvalue. It must beon. Checkserver.cfgand anything else that sets it. - No "[Gamevox] Server started" line: the folder must be named
gamevoxandensure gamevoxmust be inserver.cfg. - Voices do not change with distance: everyone must be in the same GameVox voice channel with the desktop app running.
More fixes: proximity voice not working.