Closed dppls closed 1 year ago
What does your stack trace says?
I have no idea how to look at the stack trace when gta is not actually crashing - sorry, I started scripting just a few days ago
Check the file called ScriptHookVDotNet.log in your game folder.
Got it, thank you.
[17:50:36] [ERROR] Caught unhandled exception: System.MissingMethodException: Method not found: 'System.String LemonUI.Menus.NativeMenu.get_Name()'. at ecoploos.Main.ReturnActiveMenu() at ecoploos.Main.OnKeyDown(Object sender, KeyEventArgs e) in C:\Users\dppls\source\repos\ecoploos\Main.cs:line 230 at SHVDN.Script.DoTick() [17:50:36] [ERROR] The exception was thrown while executing the script ecoploos.Main.
You have an outdated version of LemonUI. You are using in your Visual Studio/Rider project version 1.10 but your GTA V folder has 1.9.4 or older.
that's it, I had to manually change the lemonui version in NuGet to 1.9.4.
Working now, thank you so much!
Hey, I'm always getting a MissingMethodException when trying to return a NativeMenu's Name or BannerText.
The code throwing the exception looks like this (I've already reduced it to the bare minimum, to determine what was causing the exception)
The script throws the MissingMethodException but it's being catched outside of my try-catch, notice the Notification looking different to what I declared:
Same behaviour when calling BannerText but Description works fine.
Any help is very much appreciated - I'm just trying to figure out, where in the menu or submenus the player actually is.