![]() ![]() Now, let's make a little keypress to open/close our nativeUI menu, which surprisingly is very easy: This is just something to do with every NativeUI menu you create. One thing we need to do is in our tick we need to add a menuPool.ProcessMenu line, if you dont do that, the menus wont show up: Simple, right? Now lets also add the basic events(OnKeyDown, OnTick): In the last line, we add our mainMenu to our menuPool. You can of course edit these to whatever you want, but I will be keeping these throughout the tutorial. Instantiates a new UIMenu, whose title, is Mod Menu and the subtitle is SELECT AN OPTION. MainMenu = new UIMenu("Mod Menu", "SELECT AN OPTION") Instantiates the menuPool class so we can add it to the pool. Let's make a script constructor, which can instantiate and start all these classes: Right now, we need one mainmenu, which can be than divided into many other submenus, and one MenuPool. NativeUI contains all its menus in a MenuPool, and we can put all our menus in it. ![]() With that done, lets add our using namespaces:Īwesome, now lets make our class inherit GTA.Script and be done with setting everything up:Īwesome! Now, lets talk a bit about NativeUI. Lets add our references to ScriptHookVDotNet.dll and NativeUI.dll:Īlso add a reference to and System.Drawing: It is very simple, you will get to know how to create menus more than just simple mod menu functions. I thought it was a very good idea, and so I am creating a mod menu tutorial, using NativeUI. Hello guys, with my last tutorial done and dusted, I was requested to make a mod menu tutorial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |