From 9f12ff32e01b93ceba57f0a03c7e8055ae6f1784 Mon Sep 17 00:00:00 2001 From: Hannele Ruiz Date: Tue, 19 Dec 2023 16:51:29 -0300 Subject: [PATCH] Fixed MsPerGameMinute being used instead of GetGameTimer in Alt:V Fixes #151 --- LemonUI/Menus/NativeMenu.cs | 2 +- LemonUI/Scaleform/BigMessage.cs | 4 ++-- LemonUI/Scaleform/BruteForce.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LemonUI/Menus/NativeMenu.cs b/LemonUI/Menus/NativeMenu.cs index e61d1d9..bde1f97 100644 --- a/LemonUI/Menus/NativeMenu.cs +++ b/LemonUI/Menus/NativeMenu.cs @@ -1166,7 +1166,7 @@ private void ProcessControls() #if RAGEMP int time = Misc.GetGameTimer(); #elif ALTV - int time = Alt.MsPerGameMinute; + int time = Alt.Natives.GetGameTimer(); #elif RPH uint time = Game.GameTime; #else diff --git a/LemonUI/Scaleform/BigMessage.cs b/LemonUI/Scaleform/BigMessage.cs index 1692e14..d7333ce 100644 --- a/LemonUI/Scaleform/BigMessage.cs +++ b/LemonUI/Scaleform/BigMessage.cs @@ -281,7 +281,7 @@ public void FadeOut(int time) #if RAGEMP uint currentTime = (uint)Misc.GetGameTimer(); #elif ALTV - uint currentTime = (uint)Alt.MsPerGameMinute; + uint currentTime = (uint)Alt.Natives.GetGameTimer(); #elif RPH uint currentTime = Game.GameTime; #else @@ -295,7 +295,7 @@ public override void DrawFullScreen() #if RAGEMP uint time = (uint)Misc.GetGameTimer(); #elif ALTV - uint time = (uint)Alt.MsPerGameMinute; + uint time = (uint)Alt.Natives.GetGameTimer(); #elif RPH uint time = Game.GameTime; #else diff --git a/LemonUI/Scaleform/BruteForce.cs b/LemonUI/Scaleform/BruteForce.cs index 6fc0009..93baedc 100644 --- a/LemonUI/Scaleform/BruteForce.cs +++ b/LemonUI/Scaleform/BruteForce.cs @@ -199,7 +199,7 @@ public void Reset() #if RAGEMP int time = Misc.GetGameTimer(); #elif ALTV - int time = Alt.MsPerGameMinute; + int time = Alt.Natives.GetGameTimer(); #elif RPH uint time = Game.GameTime; #else @@ -237,7 +237,7 @@ public override void Update() #if RAGEMP int time = Misc.GetGameTimer(); #elif ALTV - int time = Alt.MsPerGameMinute; + int time = Alt.Natives.GetGameTimer(); #elif RPH uint time = Game.GameTime; #else