Skip to content

Commit

Permalink
Merge pull request #98 from Kopraa/main
Browse files Browse the repository at this point in the history
  • Loading branch information
shr0x authored Dec 27, 2024
2 parents 7e0b624 + 07b0ac2 commit a409960
Show file tree
Hide file tree
Showing 11 changed files with 566 additions and 416 deletions.
7 changes: 7 additions & 0 deletions packages/client/game.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,16 @@ declare interface GameMp {

wait(ms: number): void;
waitAsync(ms: number): Promise<void>;

/**
* @param timeout 5000 default
*/
waitForAsync(callback: Function, timeout: number): Promise<boolean>;
//waitForAsync<T>(promise: Promise<T>): Promise<T>;

/**
* Returns a BigInt pointer to be used with native invoker whenever you need to use it in ArrayBuffer
*/
allocateString(string: string): number;

}
Loading

0 comments on commit a409960

Please sign in to comment.