Skip to content

Commit 6bf4391

Browse files
authored
Merge pull request #79 from shr0x/main
added more missing methods
2 parents aad57f3 + 5c00c2d commit 6bf4391

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

packages/client/game/audio.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,8 @@ declare interface GameAudio extends GameAudioLegacy {
350350
hasMultiplayerDataUnloaded(): boolean;
351351
getVehicleDefaultHornVariation(vehicle: number): number;
352352
setVehicleHornVariation(vehicle: number, value: number): void;
353-
353+
playPoliceCrimeReport(position: Vector3, crimeIndex: number, playDelay: number, localPlayer: boolean): void;
354354
unk: GameAudioUnk;
355355
}
356356

357-
declare interface GameAudioMp extends GameAudio {}
357+
declare interface GameAudioMp extends GameAudio { }

packages/client/game/streaming.d.ts

+19-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,25 @@ declare interface GameStreaming extends GameStreamingLegacy {
163163
removeModelFromCreatorBudget(modelHash: number): void;
164164
getUsedCreatorModelMemoryPercentage(): number;
165165
setIslandHopperEnabled(name: string, toggle: boolean): void;
166-
166+
/**
167+
* Gets all model hashes given by p1
168+
* @param p1 p1 seems to be entity type (unsure tho, use 5 to get all vehicle hashes as array)
169+
*/
170+
getAllModelHashes(p1: number): number[];
171+
streamvolCreateSphere(x: number, y: number, z: number, flag: number, lodFlag: number): Handle;
172+
streamvolCreateFrustum(x: number, y: number, z: number, dirx: number, diry: number, dirz: number, flag: number, lodflag: number): Handle;
173+
streamvolCreateLine(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, flag: number): void;
174+
streamvolDelete(handle: Handle): void;
175+
streamvolHasLoaded(handle: Handle): boolean;
176+
streamvolIsValid(handle: Handle): boolean;
177+
isStreamvolActive(): boolean;
178+
getPlayerSwitchInterpOutCurrentTime(): number;
179+
/**
180+
* Set the game to only render hd models
181+
* @param enable true = enable, false = disable
182+
*/
183+
setRenderHdOnly(enable: boolean): void;
167184
unk: GameStreamingUnk;
168185
}
169186

170-
declare interface GameStreamingMp extends GameStreaming {}
187+
declare interface GameStreamingMp extends GameStreaming { }

0 commit comments

Comments
 (0)