[Bug] /voicechannels.json can't be parsed when a voice channel uses mode Non-spatial #447
Tynopia
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 2 comments
|
Thanks, we are looking into this. |
0 replies
|
A fix for this issue has been implemented and is available in August 31 patch. Please try again and let us know if the issue persists. Thanks for your help! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
If I create a voice channel with mode Non-spatial, the JSON from
/voicechannels.jsoncan't be read. My JSON viewer stops at the maxDistance field and shows nothing after it, so I never get to the clients array.If I create the same channel with mode Spatial, the response is fine. The only thing I change is the mode I pass to CreateVoiceChannel.
Issue type
Server
Repro rate
Always
Server build version
FXServer-early-access b129 win32
OS
No response
CPU
No response
GPU
No response
RAM
No response
Storage type
None
Connection type
None
ISP and bandwidth
No response
DxDiag
No response
Network graph
No response
Platform
None
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
None
Hosting provider
None
Machine type
None
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
Configure the server so that the
/voicechannels.jsonendpoint is enabled and reachable.Add a small resource:
voice_repro/fxmanifest.lua
voice_repro/server.lua
Start the resource and run vcreate in the server console.
GET /voicechannels.json
The response can't be read past maxDistance.
Change the call to CreateVoiceChannel(1, 20.0), which is Spatial. Restart the resource, run vcreate again and request the endpoint again. Now it parses
Expected Behavior
The response should be readable no matter which mode the channel uses, so something like:
A Non-spatial channel has no distance limit, so I'd expect 0 or null there.
Actual Behavior
With a Non-spatial channel my viewer stops here and shows nothing after it:
Whatever comes after "maxDistance": isn't accepted, and since it breaks inside the array I
lose the whole response, not just that one channel.
The same request with a Spatial channel works:
Evidence
No response
Additional Context
No response
All reactions