diff --git a/client/index.d.ts b/client/index.d.ts index 6731ccc8..82294fde 100644 --- a/client/index.d.ts +++ b/client/index.d.ts @@ -594,17 +594,26 @@ declare module "alt-client" { public setMeta(key: K, value: shared.InterfaceValueByKey): void; } + /** [Documentation](https://docs.altv.mp/articles/virtualentity.html) */ export class VirtualEntityGroup extends BaseObject { - /** Creates a new Virtual Entity Group */ + /** + * Creates a new Virtual Entity Group + * + * @param maxEntitiesInStream Max number of entities per player stream. [More info](https://docs.altv.mp/articles/virtualentity.html#what-is-max-number-of-entities-per-player-stream). + */ public constructor(maxEntitiesInStream: number); /** Returns all Virtual Entity Group instances */ public static readonly all: readonly VirtualEntityGroup[]; - /** Maximum streaming range of the Virtual Entity Group */ + /** + * Max number of entities per player stream. + * [More info](https://docs.altv.mp/articles/virtualentity.html#what-is-max-number-of-entities-per-player-stream). + */ public readonly maxEntitiesInStream: number; } + /** [Documentation](https://docs.altv.mp/articles/virtualentity.html) */ export class VirtualEntity extends WorldObject { /** Creates a new Virtual Entity */ public constructor(group: VirtualEntityGroup, position: shared.Vector3, streamingDistance: number, data?: Record); diff --git a/server/index.d.ts b/server/index.d.ts index a88b3d19..c600de2b 100644 --- a/server/index.d.ts +++ b/server/index.d.ts @@ -727,9 +727,13 @@ declare module "alt-server" { public pos: shared.Vector3; } - /** https://docs.altv.mp/articles/virtualentity.html */ + /** [Documentation](https://docs.altv.mp/articles/virtualentity.html) */ export class VirtualEntityGroup extends BaseObject { - /** Creates a new Virtual Entity Group */ + /** + * Creates a new Virtual Entity Group + * + * @param maxEntitiesInStream Max number of entities per player stream. [More info](https://docs.altv.mp/articles/virtualentity.html#what-is-max-number-of-entities-per-player-stream). + */ public constructor(maxEntitiesInStream: number); /** Returns all Virtual Entity Group instances */ @@ -737,11 +741,12 @@ declare module "alt-server" { /** * Max number of entities per player stream. - * More info: https://docs.altv.mp/articles/virtualentity.html#what-is-max-number-of-entities-per-player-stream + * [More info](https://docs.altv.mp/articles/virtualentity.html#what-is-max-number-of-entities-per-player-stream). */ public readonly maxEntitiesInStream: number; } + /** [Documentation](https://docs.altv.mp/articles/virtualentity.html) */ export class VirtualEntity extends WorldObject { /** Creates a new Virtual Entity */ public constructor(group: VirtualEntityGroup, position: shared.Vector3, streamingDistance: number, data?: Record);