diff --git a/server/js/entity.js b/server/js/entity.js new file mode 100644 index 000000000..346f22d9c --- /dev/null +++ b/server/js/entity.js @@ -0,0 +1,4 @@ +/** @type {typeof import("../../shared/js/entity.js")} */ +const { addAllGetter } = requireBinding("shared/entity.js"); + +addAllGetter(alt.VoiceChannel, alt.Enums.BaseObjectType.VOICE_CHANNEL); diff --git a/types/client/index.d.ts b/types/client/index.d.ts index 2943d000a..79831ee6b 100644 --- a/types/client/index.d.ts +++ b/types/client/index.d.ts @@ -1333,7 +1333,7 @@ declare module "@altv/client" { pos: altShared.Vector3; } - export abstract class VoiceChannel extends BaseObject {} + // export abstract class VoiceChannel extends BaseObject {} export namespace PointBlip { export function create(opts: PointBlipCreateOptions): Blip; diff --git a/types/client/package.json b/types/client/package.json index 65463f50b..1927fb760 100644 --- a/types/client/package.json +++ b/types/client/package.json @@ -1,6 +1,6 @@ { "name": "@altv/client", - "version": "0.0.24", + "version": "0.0.25", "description": "This package contains the type definitions for the alt:V JS module v2 client types", "types": "index.d.ts", "files": [ diff --git a/types/server/index.d.ts b/types/server/index.d.ts index a7df16504..66a7f36a3 100644 --- a/types/server/index.d.ts +++ b/types/server/index.d.ts @@ -785,9 +785,6 @@ declare module "@altv/server" { export interface VoiceChannelCreateOptions { spatial: boolean; maxDistance?: number; - - priority: number; - filter: number; } export abstract class VoiceChannel extends BaseObject { @@ -810,6 +807,8 @@ declare module "@altv/server" { public onCreate?(opts: VoiceChannelCreateOptions): void; public onDestroy?(): void; + static readonly all: ReadonlyArray; + static create(opts: VoiceChannelCreateOptions): VoiceChannel; static setFactory(factory: typeof VoiceChannel): void; diff --git a/types/server/package.json b/types/server/package.json index fdfbf1478..91129c764 100644 --- a/types/server/package.json +++ b/types/server/package.json @@ -1,6 +1,6 @@ { "name": "@altv/server", - "version": "0.0.26", + "version": "0.0.27", "description": "This package contains the type definitions for the alt:V JS module v2 server types", "types": "index.d.ts", "files": [