altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

Voice Chat example broken #432

Closed phumberdroz closed 3 years ago

phumberdroz commented 4 years ago

Voice chat example resource is broken. alt.createVoiceChannel get s called which is not the way to create a channel it should be new alt.VoiceChannel

Expected Behavior

Example resource works out of the box

Current Behavior

does not work

martonp96 commented 3 years ago

This was fixed in example resources repo. https://github.com/altmp/altv-example-resources/blob/master/voice/server/index.mjs

Quantum2707 commented 3 years ago

Cheers,

I just downloaded from the official altv page today and there the voice-chat example ist still broken.

Best Regards.

C0kkie commented 3 years ago

What exactly is there broken?

LeonMrBonnie commented 3 years ago

You probably just didn't enable the voice chat in your server cfg

Quantum2707 commented 3 years ago

Nah, I downloaded the example files from the official altv page and there seems to be the old version linked. So the example in this git repo works but the old one on the official downloads page is still the same which was missing the new statement. Noticed it is older cause I downloaded/cloned both this git repo and the altv examples from the download page.

Cheers.

Quantum2707 commented 3 years ago

Eeeeer, I am not sure if it may be that the change stated in this issue right here is still not in release? I got the release build incl. examples - but its a 1 year old issue. Maybe double check if just the files from the downlods page are outdated. For Downloading the server incl. examples I ticked all except C# Module, Branch = Release and Server = Windows.

Hope that helps

C0kkie commented 3 years ago

Show your server.cfg @Quantum2707

Quantum2707 commented 3 years ago

I am not using it anymore, but as I tried the settings were the same except of the resources array

name: 'WireV-RP.de Hardcore Roleplay - LOCAL TEST'
host: 0.0.0.0
port: 7788
players: 128
#password: ultra-password
announce: false
#token: YOUR_TOKEN
gamemode: Roleplay
website: wirev-rp.de
language: de
description: 'alt:V Sample Server'
modules: [ js-module ]
resources: [
  example
]
voice: {
    bitrate: 64000
}
debug: true
Unnvaldr commented 3 years ago

Wrong example resources were served, when they should be from this repo https://github.com/altmp/altv-example-resources. It's fixed now.