Skip to content

Commit

Permalink
Merge pull request #52 from Kopraa/main
Browse files Browse the repository at this point in the history
Added mp.game.hud getters from latest quick update
  • Loading branch information
leonardssh authored Dec 19, 2022
2 parents a6002b8 + c8e8ea6 commit 54b50fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/client/game/hud.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,15 @@ declare interface GameHud extends GameHudLegacy {
setMinimapComponentValues(name: string, alignX: number, alignY: number, posX: number, posY: number, sizeX: number, sizeY: number): void;
resetMinimapComponentValues(names: string[]): void;
getMinimapComponentValues(componentName: string): number | string;
getCurrentAreaNameString(): string;
getCurrentAreaNameHash(): number;
getCurrentAreaNameLabel(): string;
getCurrentStreetNameString(): string;

/**
* Way, way faster than GET_STREET_NAME_AT_COORD native function as it uses the street HUD component cached value.
*/
getCurrentStreetNameHash(): number;

unk: GameHudUnk;
}
Expand Down

0 comments on commit 54b50fe

Please sign in to comment.