From 6b7400350c62f962c718d255c77a9627670f4808 Mon Sep 17 00:00:00 2001 From: Christopher M Date: Thu, 19 Oct 2023 11:39:37 +1100 Subject: [PATCH] Dispose of Noclip scaleform when not in use --- vMenu/Noclip.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vMenu/Noclip.cs b/vMenu/Noclip.cs index 8c631561..95273f4f 100644 --- a/vMenu/Noclip.cs +++ b/vMenu/Noclip.cs @@ -11,7 +11,7 @@ public class NoClip : BaseScript { private static bool NoclipActive { get; set; } = false; private static int MovingSpeed { get; set; } = 0; - private static int Scale { get; set; } = -1; + private static int Scale = -1; private static bool FollowCamMode { get; set; } = true; @@ -35,6 +35,13 @@ public NoClip() internal static void SetNoclipActive(bool active) { NoclipActive = active; + + if (!active) + { + SetScaleformMovieAsNoLongerNeeded(ref Scale); + + Scale = -1; + } } internal static bool IsNoclipActive()