AvarianKnight / pma-voice

An easy drag n' drop resource that gives you a wrapper to use FiveM's built-in mumble voice.
MIT License
219 stars 187 forks source link

Blocked inside a while loon on mumbleConnected event when a lot of players are on the server. #426

Closed d22tny closed 1 year ago

d22tny commented 1 year ago

while MumbleGetVoiceChannelFromServerId(playerServerId) ~= LocalPlayer.state.assignedChannel do Wait(250) MumbleSetVoiceChannel(LocalPlayer.state.assignedChannel) end

client/events.lua

It seems that surpassing 800 players on the server make this loop to be stuck. Players have to wait a lot in order to get connected.

I have an external FXServer to host the voice chat.

I think this might be an issue on my end, like forgetting to set up the channels. I remember that the game channels were created automatically on FXServer, but were they default on maxClients or where to set them ? i Have 1024 slots on voice Chat FXServer and 1024 on the main server.

d22tny commented 1 year ago

I've printed both MumbleGetVoiceChannelFromServerId(playerServerId) and LocalPlayer.state.assignedChannel and it seems MumbleGetVoiceChannelFromServerId(playerServerId) returns -1, LocalPlayer.state.assignedChannel is returning as expected.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.