altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

[alt:V Voice] Adjust voice volume of other users.

Open TheNytech opened this issue 1 year ago • 2 comments

Description of the problem

One of the advantages of external voice programs is the individual adjustment of other user's voice level in case they are too loud or quiet for you personally.

Desired solution for the problem

This feature is currently missing in altV, so I wanted to throw in the idea of having a native method to adjust the volume for each user on the client side.

Alternatives you considered

If there is no native client-side implementation, maybe having an API method can give developers the opportunity to implement something like that for their server.

Additional context

No response

TheNytech avatar Dec 20 '23 03:12 TheNytech

It's already possible to adjust the volume via the client API:

  • for 3D: https://docs.altv.mp/js/api/alt-client.Player.html#_altmp_altv_types_alt_client_Player_spatialVolume
  • for 2D: https://docs.altv.mp/js/api/alt-client.Player.html#_altmp_altv_types_alt_client_Player_nonSpatialVolume

Regarding a native implementation into the client:

  • This would require every server to use the alt:V naming system.
  • Some servers don't want to show the name of the player speaking/while adjusting volume.

ThomasMarangoni avatar Dec 20 '23 05:12 ThomasMarangoni

Alright, thanks for the reply! We will look into the functions and how to implement them the best!

TheNytech avatar Dec 21 '23 18:12 TheNytech