Skip to content

Commit

Permalink
Merge pull request #79 from shr0x/main
Browse files Browse the repository at this point in the history
added more missing methods
  • Loading branch information
shr0x authored Apr 23, 2024
2 parents aad57f3 + 5c00c2d commit 6bf4391
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/client/game/audio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ declare interface GameAudio extends GameAudioLegacy {
hasMultiplayerDataUnloaded(): boolean;
getVehicleDefaultHornVariation(vehicle: number): number;
setVehicleHornVariation(vehicle: number, value: number): void;

playPoliceCrimeReport(position: Vector3, crimeIndex: number, playDelay: number, localPlayer: boolean): void;
unk: GameAudioUnk;
}

declare interface GameAudioMp extends GameAudio {}
declare interface GameAudioMp extends GameAudio { }
21 changes: 19 additions & 2 deletions packages/client/game/streaming.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,25 @@ declare interface GameStreaming extends GameStreamingLegacy {
removeModelFromCreatorBudget(modelHash: number): void;
getUsedCreatorModelMemoryPercentage(): number;
setIslandHopperEnabled(name: string, toggle: boolean): void;

/**
* Gets all model hashes given by p1
* @param p1 p1 seems to be entity type (unsure tho, use 5 to get all vehicle hashes as array)
*/
getAllModelHashes(p1: number): number[];
streamvolCreateSphere(x: number, y: number, z: number, flag: number, lodFlag: number): Handle;
streamvolCreateFrustum(x: number, y: number, z: number, dirx: number, diry: number, dirz: number, flag: number, lodflag: number): Handle;
streamvolCreateLine(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, flag: number): void;
streamvolDelete(handle: Handle): void;
streamvolHasLoaded(handle: Handle): boolean;
streamvolIsValid(handle: Handle): boolean;
isStreamvolActive(): boolean;
getPlayerSwitchInterpOutCurrentTime(): number;
/**
* Set the game to only render hd models
* @param enable true = enable, false = disable
*/
setRenderHdOnly(enable: boolean): void;
unk: GameStreamingUnk;
}

declare interface GameStreamingMp extends GameStreaming {}
declare interface GameStreamingMp extends GameStreaming { }

0 comments on commit 6bf4391

Please sign in to comment.