From 67257d5c13b9c9c08b483b3bd938bb0485798c4c Mon Sep 17 00:00:00 2001 From: shr0x Date: Sat, 16 Mar 2024 10:28:10 +0100 Subject: [PATCH] Added 'binded' for EventMpPool --- packages/server/index.d.ts | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/packages/server/index.d.ts b/packages/server/index.d.ts index 71b4288..159fcea 100644 --- a/packages/server/index.d.ts +++ b/packages/server/index.d.ts @@ -332,20 +332,20 @@ declare class EntityMpPool { */ public getClosest(position: Vector3, limit: number): T[]; - /** - * Gets the closest set of entities to a position in the defined dimension. - * - * @param position Vector3 - * @param dimension The Dimension - * @param limit Limit of results - * @returns Array of entities sorted by distance to given position - * - * @example - * ``` - * const [closestVehicle] = mp.vehicles.getClosestInDimension(player.position, player.dimension, 1); - * closestVehicle.locked = true; - * ``` - */ + /** + * Gets the closest set of entities to a position in the defined dimension. + * + * @param position Vector3 + * @param dimension The Dimension + * @param limit Limit of results + * @returns Array of entities sorted by distance to given position + * + * @example + * ``` + * const [closestVehicle] = mp.vehicles.getClosestInDimension(player.position, player.dimension, 1); + * closestVehicle.locked = true; + * ``` + */ public getClosestInDimension(position: Vector3, dimension: number, limit: number): T[]; /** @@ -1309,7 +1309,7 @@ declare interface EventMpThis { declare interface IServerEvents { entityCreated: (entity: EntityMp) => void; /* - * @deprecated Broken/Removed in RageMP 1.1 DP1 + * @deprecated Broken/Removed in RageMP 1.1 DP1 */ entityDestroyed: (entity: EntityMp) => void; entityModelChange: (entity: EntityMp, oldModel: number) => void; @@ -1438,6 +1438,11 @@ declare class EventMpPool { public remove(eventName: string, callback?: (...args: any[]) => void): void; public remove(eventNames: string[]): void; + /** + * Returns a list of binded events. + */ + readonly binded: { [key: string]: Function }[] + /** * Resets the whole event manager. */