Latest versions of MelonLoader are known to have issues with some games. Use version 0.5.4 until the issue has been fixed!
Decompiled source of AmmoCountHider v1.0.0
Mods/AmmoCountHider.dll
Decompiled 4 months agousing System.Diagnostics; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using AmmoCountHider; using MelonLoader; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("AmmoCountHider")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany(null)] [assembly: AssemblyProduct("AmmoCountHider")] [assembly: AssemblyCopyright("Created by thebonerworksthebonerworks")] [assembly: AssemblyTrademark(null)] [assembly: ComVisible(false)] [assembly: AssemblyFileVersion("1.0.0")] [assembly: NeutralResourcesLanguage("en")] [assembly: MelonInfo(typeof(HideAmmoCounter), "AmmoCountHider", "1.0.0", "thebonerworks", null)] [assembly: MelonGame("Stress Level Zero", "BONEWORKS")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace AmmoCountHider; public static class BuildInfo { public const string Name = "AmmoCountHider"; public const string Author = "thebonerworks"; public const string Company = null; public const string Version = "1.0.0"; public const string DownloadLink = null; } public class HideAmmoCounter : MelonMod { public override void OnSceneWasLoaded(int buildIndex, string sceneName) { ((MelonMod)this).OnSceneWasLoaded(buildIndex, sceneName); GameObject val = GameObject.Find("[RigManager (Default Brett)]/[UIRig]/PLAYERUI/Hud"); if ((Object)(object)val != (Object)null) { val.SetActive(false); MelonLogger.Msg("AmmoCountHider succesfully ran!"); } else { MelonLogger.Warning("AmmoCountHider failed to run. "); } } }