Roko191 Posted July 14, 2020 Share Posted July 14, 2020 (edited) Hello everyone! I am making a GTA V mod menu for pc but there is a problem. I am using ScriptHookVDotNET and NativeUI. So I wrote the code and saved in and then putted .cs file in my script folder(and yes I did put NativeUI in there) and command line was priting this (click here). So then by following this post I figured out I shoud compile .cs file to .dll which I did and guess what it did not work . For more info here is a code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing; using GTA; using GTA.Native; using GTA.Math; using NativeUI; namespace ModMenu { public class Class1 : Script { MenuPool modMenuPool; UIMenu mainMenu; public Class1() { modMenuPool = new MenuPool(); mainMenu = new UIMenu("Mod Menu", "SELECT AN OPTION"); modMenuPool.Add(mainMenu); } void onTick(object sender, EventArgs e) { if (modMenuPool != null) modMenuPool.ProcessMenus(); } void onKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F10 && !modMenuPool.IsAnyMenuOpen()) { mainMenu.Visible = !mainMenu.Visible; } } } } and picture of references added to project and tutorial I was following (references, tutorial). Btw my goal of this script to open a little mod menu with no fuctions (like this one) when button F10 is pressed. If you want need more info feel free to say what it is. I hope I get some help. Edit: Also VS doesnt not recognize any problem in code and ScriptHookVDotNET console does not recogniye any problem when I put .dll file in script folder. Edited July 18, 2020 by Roko191 Edited becuse of more info given. Edited again becuse someone by title might think that I want to make GTA online mod menu Link to comment https://gtaforums.com/topic/958567-script-error-making-gtav-trainer/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now