Skip to content

Commit

Permalink
feat(client): Add new voice methods
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Dec 28, 2023
1 parent 86c4ce1 commit 7285a21
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2953,6 +2953,20 @@ declare module "alt-client" {

export function getPoolEntities(poolName: string): number[];

// Voice related functions
export function getVoicePlayers(): number[];
export function removeVoicePlayer(player: number): void;

export function getVoiceSpatialVolume(player: number): number;
export function setVoiceSpatialVolume(player: number, volume: number): void;

export function getVoiceNonSpatialVolume(player: number): number;
export function setVoiceNonSpatialVolume(player: number, volume: number): void;

export function addVoiceFilter(player: number, filter: AudioFilter): void;
export function removeVoiceFilter(player: number): void;
export function getVoiceFilter(player: number): AudioFilter;

export class WebSocketClient extends BaseObject {
/**
* Retrieves the websocketclient from the pool.
Expand Down

0 comments on commit 7285a21

Please sign in to comment.