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
| Key | Binding | Does |
|---|---|---|
| N | Voice: push to talk | Talk to the people near you. The HUD's voice circle lights blue |
| Caps Lock | Voice: radio push to talk | Talk on your radio while it's on (the circle goes orange). The people next to you still hear you |
| Z | Cycle Voice Range | Whisper (3 m), normal (8 m), shout (20 m): whip_core's key |
| LB + A · LB + X | A controller's talk and radio | Held, 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).
megaphone: held up, your voice carries 6 times as far and sounds like a bullhorn. Use it again to put it away; it also goes down if you get in a car, draw a weapon, drop it or die.radio: a 3D handheld radio in the bottom right, worked with the mouse (or a controller: its buttons show beside it). The right knob is power and volume; the middle knob is the channel, 100 to 999, which is the frequency. Everyone on the same frequency hears you on Caps Lock: clear up to 500 m, then cutting out with static, gone by 1.5 km. Esc puts it away and it keeps working; it turns off if you lose the radio. While you're down you still hear it but can't talk on it, open it or change it.- Radio on speaker: the grey button on top. The people near you hear your radio too, from where you stand, but not louder for you. Someone on the same frequency hears it on their own radio only, never twice.
speaker: put down anywhere, or on a car, it plays a song for everyone around. A prompt behind it picks the song and has Play, Stop, Volume and Range.
Commands
| Command | Who | Does |
|---|---|---|
/voicecheck | developer mode, console | Checks 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) |
/voicestatus | developer mode, console | The voice address, the room, and each player connected, with how many voices they hear |
/voicevolume 0-200 | everyone | How loud the people around you are (100 normal, 0 mutes them). Kept on your PC |
/voicedebug | developer mode | What 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:
| Setting | Default | Changes |
|---|---|---|
Config.Ranges | 3 / 8 / 20 | How far whisper, normal and shout carry, in metres |
Config.FullVolumeWithin | 1.0 | Full volume only this close; from there a voice fades steadily to silence at the edge of its range |
Config.SideSeparation | 6 | dB quieter in the far ear, on top of the 3D: 0 the 3D alone, 12 strong |
Config.Environment.headphone3D | true | Full 3D made for headphones. false for plain panning, if voices sound hollow |
Config.MaxVoices | 100 | The most voices one player is connected to at once (the nearest) |
Config.Megaphone.rangeMultiplier | 6 | How many times further a megaphone voice carries |
Config.Megaphone.carMuffle | 4 | dB a closed car takes off a megaphone voice (a normal voice: Config.Muffle.car, 9) |
Config.Speaker | Fivemanage links, 100 %, 30 m (up to 300), 3 each, seen from 300 m | The 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.Radio | Caps Lock, 500 / 1500 m, 100-999 | The radio's key, how far it's clear, how far it reaches, its frequencies |
Config.Radio.staticVolume | 0.06 | Static in the gaps of a weak radio voice (0 none, 1 very loud) |
Config.Radio.distortion | 1.0 | How garbled a weak radio voice gets (0 clean, 1.5 the most) |
Config.Radio.speakerRange | 8 | How far, in metres, people hear a radio on speaker |
Config.Radio.uiSounds | true | The radio's key and power beeps. The talk and roger beeps stay either way |
Config.Quality.bitrateKbps | 64 | Voice quality (Discord uses 64) |
Config.Quality.noiseSuppression | true | Noise suppression for players who haven't chosen |
Config.CrowdQuality | 40 → 40 kbps, 80 → 24 kbps | Voices heard by big crowds send less, so a crowd doesn't swamp the voice server |
Config.Quality.silentWhenQuiet | false | Send nothing while the key is up: saves a little in huge crowds, but each press's first word comes ~30 ms later |