Esc to clear, Enter to open the best match, click an export to open it in its page
Voice

Voice: keys, items, settings

whip_voice is WHIP's 3D voice chat. This page covers its keys, items, commands and settings; setup is under Setting up whip_voice, and your resource's calls under Voice for other resources.

Players hear the people near them in 3D: muffled through walls and doors, heard from the doorway or window between them, and different in cars and underwater. Outdoors, sound bends round what is in the way (over a low wall, round a building's corner, through a yard's gateway) and is heard from where it comes round, more muffled the sharper the bend: a post hardly at all, a right-angle corner about 6 dB, a building with no way round a lot. Music, such as a speaker's, comes round corners by two ways at once, so walking past a row of alleys it fades from one gap to the next rather than jumping. A phone call carries the phone's sound, and on speaker it works both ways. The radio is clear up close, then breaks up with static and fades out by its range. The server decides who hears whom, so a modified game can't listen in. whip_phone's calls, the radio, megaphone and speaker items, the HUD's voice light and your resources all go through it.

Keys

KeyBindingDoes
NVoice: push to talkTalk to the people near you. The HUD's voice circle lights blue
Caps LockVoice: radio push to talkTalk on your radio while it's on (the circle goes orange). The people next to you still hear you
ZCycle Voice RangeWhisper (3 m), normal (8 m), shout (20 m): whip_core's key
LB + A · LB + XA controller's talk and radioHeld, as the keys. Players move them on the pause menu's Controller screen

Players rebind them in Settings > Key Bindings > FiveM.

Items

whip_voice registers these. Give them like any item: Whip.core:AddItem(source, 'radio', 1).

Commands

CommandWhoDoes
/voicecheckdeveloper mode, consoleChecks the voice system, the voice server (and Windows Firewall, for the built-in one) and every player's game, and says what to fix (Setting up whip_voice)
/voicestatusdeveloper mode, consoleThe voice address, the room, and each player connected, with how many voices they hear
/voicevolume 0-200everyoneHow loud the people around you are (100 normal, 0 mutes them). Kept on your PC
/voicedebugdeveloper modeWhat each voice goes through (muffled by what, heard from which doorway), and every door and window of the building you're in

Each player also sets Voice volume, Phone call volume (the phone's Settings > Sounds > Call volume too), Radio volume and Background noise suppression in the pause menu's Settings (Server → Chat & voice), kept on their PC. Noise suppression changes at once, with a moment's silence.

SettingsServer owners

In whip_voice/config.lua:

SettingDefaultChanges
Config.Ranges3 / 8 / 20How far whisper, normal and shout carry, in metres
Config.FullVolumeWithin1.0Full volume only this close; from there a voice fades steadily to silence at the edge of its range
Config.SideSeparation6dB quieter in the far ear, on top of the 3D: 0 the 3D alone, 12 strong
Config.Environment.headphone3DtrueFull 3D made for headphones. false for plain panning, if voices sound hollow
Config.MaxVoices100The most voices one player is connected to at once (the nearest)
Config.Megaphone.rangeMultiplier6How many times further a megaphone voice carries
Config.Megaphone.carMuffle4dB a closed car takes off a megaphone voice (a normal voice: Config.Muffle.car, 9)
Config.SpeakerFivemanage links, 100 %, 30 m (up to 300), 3 each, seen from 300 mThe speaker item: the links it plays, a new one's volume and range, the furthest a player may set it, how many one character may have out (64 on the server), and how far away it's seen (drawDistance)
Config.RadioCaps Lock, 500 / 1500 m, 100-999The radio's key, how far it's clear, how far it reaches, its frequencies
Config.Radio.staticVolume0.06Static in the gaps of a weak radio voice (0 none, 1 very loud)
Config.Radio.distortion1.0How garbled a weak radio voice gets (0 clean, 1.5 the most)
Config.Radio.speakerRange8How far, in metres, people hear a radio on speaker
Config.Radio.uiSoundstrueThe radio's key and power beeps. The talk and roger beeps stay either way
Config.Quality.bitrateKbps64Voice quality (Discord uses 64)
Config.Quality.noiseSuppressiontrueNoise suppression for players who haven't chosen
Config.CrowdQuality40 → 40 kbps, 80 → 24 kbpsVoices heard by big crowds send less, so a crowd doesn't swamp the voice server
Config.Quality.silentWhenQuietfalseSend nothing while the key is up: saves a little in huge crowds, but each press's first word comes ~30 ms later