Skip to content

Commit

Permalink
Merge pull request #63 from letovsk1y/main
Browse files Browse the repository at this point in the history
Fix taskJump and Remove missing toArrayFast
  • Loading branch information
ksenonadv authored Oct 24, 2023
2 parents 89044a3 + 25ddb10 commit 0c9f17e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion packages/client/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,12 @@ declare interface PedMpBase extends EntityMp {
p13: number,
p14: number
): void;
taskJump(unused: boolean): void;
/**
* @param unused
* @param flag1 - super jump
* @param flag2 - do nothing if flag1 is false and doubles super jump height if flag1 is true.
*/
taskJump(unused: boolean, flag1: boolean, flag2: boolean): void;
taskLeaveAnyVehicle(p1: number, p2: number): void;
taskLeaveVehicle(vehicle: Handle, flags: number): void;
taskLookAt(lookAt: Handle, duration: number, unknown1: number, unknown2: number): void;
Expand Down
6 changes: 0 additions & 6 deletions packages/server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,8 @@ declare class EntityMpPool<T> {
/**
* Converts a pool to an array.
*
* If you don't need to create a new array every time, use [Pool::toArrayFast](https://wiki.rage.mp/index.php?title=Pool::toArrayFast).
*/
public toArray(): T[];

/**
* Same as [Pool::toArray](https://wiki.rage.mp/index.php?title=Pool::toArray) except it doesn't create a new array each time and instead updates it and returns the same array.
*/
public toArrayFast(): T[];
}

declare class PlayerMp extends EntityMp {
Expand Down

0 comments on commit 0c9f17e

Please sign in to comment.