Skip to content

Commit

Permalink
chore(server): add some descriptions of voice channel properties (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady authored Jul 1, 2024
1 parent 66c6243 commit 13cccc7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2822,8 +2822,17 @@ declare module "alt-server" {
public readonly maxDistance: number;
public readonly isSpatial: boolean;

/**
* Priority of voice channel.
* If a player is in two channels and both can be heard by another player, only one should play the voice.
* Value is of type integer, can be negative.
*/
public priority: number;

/**
* Hash of the filter name (should also be created on clientside).
* See docs: [Audio filters](https://docs.altv.mp/articles/audio_filters.html), [Voice](https://docs.altv.mp/articles/voice.html).
*/
public filter: number;

public addPlayer(player: Player): void;
Expand Down

0 comments on commit 13cccc7

Please sign in to comment.