From 34737c5b18623deea10140b0457f81a98fcfee37 Mon Sep 17 00:00:00 2001 From: doxoh Date: Sun, 15 Oct 2023 16:14:20 +0200 Subject: [PATCH] Add NetTime as Alt.NetTime for client and server --- api/AltV.Net.Client/Alt.cs | 2 ++ api/AltV.Net/Alt.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/AltV.Net.Client/Alt.cs b/api/AltV.Net.Client/Alt.cs index 3d22219f4..f7ccf7248 100644 --- a/api/AltV.Net.Client/Alt.cs +++ b/api/AltV.Net.Client/Alt.cs @@ -99,5 +99,7 @@ public static bool GetBaseObjectById(BaseObjectType type, uint id, [MaybeNullWhe public static bool IsWebViewGpuAccelerationActive => Core.IsWebViewGpuAccelerationActive; public static IWorldObject GetWorldObjectByScriptID(BaseObjectType type, uint scriptId) => Core.GetWorldObjectByScriptID(type, scriptId); public static VoiceConnectionState GetVoiceConnectionState() => Core.GetVoiceConnectionState(); + + public static int NetTime => Core.NetTime; } } \ No newline at end of file diff --git a/api/AltV.Net/Alt.cs b/api/AltV.Net/Alt.cs index c4b87af3b..f4438dbb9 100644 --- a/api/AltV.Net/Alt.cs +++ b/api/AltV.Net/Alt.cs @@ -145,6 +145,8 @@ public static Task ForEachColShapes(IAsyncBaseObjectCallback baseObje public static IReadOnlyCollection GetAllMetrics() => Core.GetAllMetrics(); public static VoiceConnectionState GetVoiceConnectionState() => Core.GetVoiceConnectionState(); + public static int NetTime => Core.NetTime; + public static ushort MaxStreamingPeds { get => Core.MaxStreamingPeds;