[Release/WIP] In-game Pause Menu Helper API
-
@Krlos_Rokr Hmm that's a pretty strange looking error. What version of visual studio are you on? Could be a backward compatibility problem
-
@CamxxCore Thanks for answer, i'm VB Express 2012, i'll download the newest to see if that's the problem.
-
@Krlos_Rokr There is your problem. Project is written in C++/ CLI so make sure you install all components relevant to C++ development

-
This post is deleted!
-
@CamxxCore
Thanks man, i download the vb 2017, that come with all extensions 😂.Dude is there a way you can write a VB example in .Net?
I have troubles to check when menu has change 🤔
I'll post my code in a while my pc has networks problems right now 😑
Edit: Here is the code i'm using
Private Menu As New PauseMenu(MenuType.Settings)
Private SubMenu As New PauseMenu()
Private Item1 As PauseMenuItemItem1 = SubMenu.AddItem("Helmet Model", MenuSettingType.Toggle)
Menu.AddItem("Biker Gear v2", MenuItemType.Default, 0, SubMenu.MenuID)Protected Overrides Sub Dispose(A_0 As Boolean) Menu.Dispose() SubMenu.Dispose() MyBase.Dispose(A_0) End Sub Private Sub MenuItem_ValueChanged(MenuId As Int32, itemIndex As Int32, value As Int32) If MenuId = Menu.MenuID Then Dim Item As PauseMenuItem = Menu.ItemAt(itemIndex) Game.Player.Character.AddBlip() UI.ShowSubtitle(String.Format("MenuValueChanged: setting {0} to {1}", Item.Text, value)) End If End Subi try in a loop
MenuItem_ValueChanged(Menu.MenuID, Menu.IndexOf(Item1), Item1.Value)
-
@Krlos_Rokr I know basically nothing when it comes to Visual Basic. But pretty sure you need to link the event handler up somehow. Perhaps writing 'AddHandler menuItem.ValueChanged, AddressOf MenuItem_ValueChanged' would work? I really don't know
-
@CamxxCore i don't know too much xD, i try but doesn't work