Hello,
This tutorial covers a short step by step explanation on “how to host fivem’s voice chat in another server”. It could be relevant for you to run the voice chat outside of FXServer for several reasons: performance, DDoS protection. In this tutorial, we aim to deploy the voice server in Linux, but it should be the same steps with Windows.
Requirements
Setup
IT MAY BE BETTER TO USE MURMUR INSTEAD OF GRUMBLE FOR STABILITY REASON
We are going to use Grumble. Grumble is an implementation of a server for the Mumble voice chat system. It is an alternative to Murmur, the typical Mumble server.
Installation
git clone https://github.com/mumble-voip/grumble.git
cd grumble
go get mumble.info/grumble/cmd/grumble
docker build -t mumble-voip/grumble .
Deploy with docker
docker run
-v $HOME/.grumble:/data
-p 64738:64738
-p 64738:64738/udp
mumble-voip/grumble
If you want to deploy the voice chat on another port with the same IP you also need to change the default port of grumble in cmd/grumble/server.go
.
Join the server
A new native has been introduced MUMBLE_SET_SERVER_ADDRESS
to set the server the user should join. This means that you can use and deploy multiple servers.
Example
MumbleSetServerAddress('127.0.0.1', 64738)
return MumbleIsConnected()
This will be supported by FiveM once https://github.com/citizenfx/fivem/pull/498 is merged.