diff --git a/api/AltV.Net.Shared/AltShared.cs b/api/AltV.Net.Shared/AltShared.cs index 84d800b7..082a8c8a 100644 --- a/api/AltV.Net.Shared/AltShared.cs +++ b/api/AltV.Net.Shared/AltShared.cs @@ -10,10 +10,37 @@ namespace AltV.Net.Shared public static class AltShared { internal static ISharedCore CoreImpl { get; set; } + public static uint Hash(string key) => CoreImpl.Hash(key); + public static bool CacheEntities = true; + public static void EmitLocal(string eventName, params object[] args) => CoreImpl.TriggerLocalEvent(eventName, args); public static void RegisterMValueAdapter(IMValueAdapter adapter) => CoreImpl.RegisterMValueAdapter(adapter); + + public static string SdkVersion => CoreImpl.SdkVersion; + + public static string CApiVersion => CoreImpl.CApiVersion; + + public static string Version => CoreImpl.Version; + + public static string Branch => CoreImpl.Branch; + + public static bool IsDebug => CoreImpl.IsDebug; + + public static void LogInfo(string message) => CoreImpl.LogInfo(message); + + public static void LogDebug(string message) => CoreImpl.LogDebug(message); + + public static void LogWarning(string message) => CoreImpl.LogWarning(message); + + public static void LogError(string message) => CoreImpl.LogError(message); + + public static void LogColored(string message) => CoreImpl.LogColored(message); + + public static bool IsMainThread() => CoreImpl.IsMainThread(); + + public static int NetTime => CoreImpl.NetTime; } } \ No newline at end of file