AvarianKnight / pma-voice

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

Export getPlayersInRadioChannel not accessible #322

Closed DarinBeard closed 2 years ago

DarinBeard commented 2 years ago

Did you read the README?: There's a lot of information in the README, if you ask a question that is answered in the README, you will be told to "Read the README"

Describe the bug A clear and concise description of what the bug is.

local players = exports['pma-voice']:getPlayersInRadioChannel(1) This is throwing an error. It did it when I tried to use it and then I just tried to use another script and it did the same thing in that script.

SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:867: No such export getPlayersInRadioChannel in resource pma-voice

To Reproduce Steps to reproduce the behavior: Just execute the line above and the error happens

Expected behavior A clear and concise description of what you expected to happen.

I expect a list of players in the requested channel

Server Info:

Additional context Add any other context about the problem here.

I've tried this on a couple of servers, I am not sure of the build versions of the other because it's not mine but it's a live zap hosted server that is kept up to date.

AvarianKnight commented 2 years ago

Works fine, but it only works server side.