diff --git a/client/index.d.ts b/client/index.d.ts index cd2a07ff..2728117c 100644 --- a/client/index.d.ts +++ b/client/index.d.ts @@ -544,6 +544,20 @@ declare module "alt-client" { readonly uuid: string | null; } + export interface ISyncInfo { + readonly active: boolean; + readonly receivedTick: number; + readonly fullyReceivedTick: number; + readonly sendTick: number; + readonly ackedSendTick: number; + readonly propertyCount: number; + readonly componentCount: number; + /** + * 2D array of property update ticks grouped by component + */ + readonly propertyUpdateTicks: number[][]; + } + export class BaseObject extends shared.BaseObject { /** * Whether this entity was created clientside or serverside. (Clientside = false, Serverside = true). @@ -946,6 +960,8 @@ declare module "alt-client" { public getStreamSyncedMetaKeys(): readonly string[]; + public getSyncInfo(): ISyncInfo; + public frozen: boolean; }