How do you get the Native UI Menu C sharp code into the game?
-
This may be a very obvious question, but I have looked around and can't find an answer. I have made a menu using Visual Studio, but how do I get that as a .dll or something like the mod menus you can download so that I can put it in the game files and test it out.
-
@herobank110 Your question is a little confusing... did you use NativeUI to write your menu, or have you written a complete menu system yourself?
If you used NativeUI and have added that to your class library project as a reference, then if NativeUI.dll is in your game scripts folder, your mod will use that dll in the same way it used the one in your project.
So simply build the project (remembering to use Release mode, not Debug mode) then copy the dll from the [project folder]\bin\Release folder into the game scripts folder and it should work.
-
I have been at this for a while trying many different combinations of files in my GTA installation. I downloaded the latest scripthookV which solved the issue of it immediately crashing, but is there anything else I may need to use the scripts folder?
-
@herobank110 Well you should already have ScriptHookVDotNet installed in your main game folder, so other than what I mentioned in my last post, there's nothing else required in the scripts folder.
-

-
@herobank110 You really need to read these, because your menu contains nothing to interact with, or display.
https://forums.gta5-mods.com/topic/1023/c-nativeui-how-to-create-a-mod-menu-using-nativeui-part-1
https://forums.gta5-mods.com/topic/1027/c-nativeui-how-to-create-a-mod-menu-using-nativeui-part-2
-
@LeeC2202 Funnily enough, that was the guide I followed in the first place. I guess I got confused at the beginning and deleted everything. Thanks for helping me realise this.