gaqally.blogg.se

How to get mods for bo2 xbox one going through the xbox
How to get mods for bo2 xbox one going through the xbox





how to get mods for bo2 xbox one going through the xbox

Let's test this script ingame!Īs you can see, this script works! Now, you can add as much to it as you want, but I am also going to show you other basics of how you can use this. Let's however implement our basic reset wanted level script:Įasy to understand, as explained before. This way, we can expand our menu easily by checking the returned item with other items, and make more and more functions. This event gets called whenever we select an item, and it also passes through which Item was selected. For that, we need another event, which is built-in NativeUI's UIMenu class:|įairly easy to understand, just another event. Now this will give us an Item which we can click, but nothing will happen. This is how I do it:įirst, I declare a global variable resetWantedLevel of type UIMenuItem, which I set its value in the Setup function. I would like to do that in a little private function which we can call later on. But before, we need to set everything up. Let's check if this code works ingame:Īs you can see, we don't have any options, but this does work! Next, we'll add some simple items which you can select. If they arent, we open/close our menu using the visible property. This little piece of code checks if we press the key F10, and if we do, no menus are open. 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):

how to get mods for bo2 xbox one going through the xbox

In the last line, we add our mainMenu to our menuPool.

how to get mods for bo2 xbox one going through the xbox

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.







How to get mods for bo2 xbox one going through the xbox