If i were to create a tool instead of a script, how would i connect the tool to gta5.exe?

MayhemGaming
View profile on GTA5-Mods.com »
Posts made by MayhemGaming
-
RE: [C#][Tutorial] Basics of creating a script PART 1
-
RE: Mod Menu Selecting More Options At Once! help!
@ikt how would you right it though?
i've tried UIMenu.MouseControlsEnabled = false;
but it doesn't work -
RE: Mod Menu Selecting More Options At Once! help!
@stillhere One quick question, how do you disable the mouse for a NativeUI menu?
-
Mod Menu Selecting More Options At Once! help!
So this is my first time attempting to code a mod menu for gta 5 and all the features so far are working great but there is one problem. When using the Player menu, say i select god mode it will enable god mode but it will also enable the option underneath it which in my case is Never wanted.
Here is my code:
public class Class1 : Script
{
MenuPool modMenuPool;
UIMenu mainMenu;UIMenu playerMenu; UIMenu vehicleMenu; bool godModeon = false; bool neverWantedlevelOn = false; Ped gamePed = Game.Player.Character; public Class1() { Setup(); Tick += onTick; KeyDown += OnKeyDown; } void Setup() { modMenuPool = new MenuPool(); mainMenu = new UIMenu("Mayhems Menu", "Main Menu"); modMenuPool.Add(mainMenu); playerMenu = modMenuPool.AddSubMenu(mainMenu, "Player"); vehicleMenu = modMenuPool.AddSubMenu(mainMenu, "Vehicle Spawner"); SetupPlayerFunctions(); SetupVehicleFunctions(); } void SetupPlayerFunctions() { godMode(); NeverWanted(); Money(); } void SetupVehicleFunctions() { SpawnVehicle(); SpawnVehicleName(); } void Money() { UIMenuItem giveMoney = new UIMenuItem("Give $10 mil"); playerMenu.AddItem(giveMoney); playerMenu.OnItemSelect += (sender, item, index) => { Game.Player.Money = Game.Player.Money + 10000000; }; } void NeverWanted() { UIMenuItem neverWanted = new UIMenuItem("Never Wanted: " + neverWantedlevelOn.ToString()); playerMenu.AddItem(neverWanted); playerMenu.OnItemSelect += (sender, item, index) => { neverWantedlevelOn = !neverWantedlevelOn; if (neverWantedlevelOn) { neverWanted.Text = "Never Wanted: " + true.ToString(); } else { neverWanted.Text = "Never Wanted: " + false.ToString(); } }; } void godMode() { UIMenuItem godMode = new UIMenuItem("God Mode: " + godModeon.ToString()); playerMenu.AddItem(godMode); playerMenu.OnItemSelect += (sender, item, index) => { godModeon = !godModeon; if (item == godMode) { if (godModeon) { Game.Player.IsInvincible = true; gamePed.IsInvincible = true; godMode.Text = "God Mode: " + true.ToString(); } else { Game.Player.IsInvincible = false; gamePed.IsInvincible = false; godMode.Text = "God Mode: " + false.ToString(); } } }; } void SpawnVehicleName() { UIMenuItem vehicleSpawnItem = new UIMenuItem("Spawn Vehicle By Name"); vehicleMenu.AddItem(vehicleSpawnItem); vehicleMenu.OnItemSelect += (sender, item, index) => { if (item == vehicleSpawnItem) { string modelName = Game.GetUserInput(50); Model model = new Model(modelName); model.Request(); if (model.IsValid) { Vehicle veh = World.CreateVehicle(model, gamePed.Position, gamePed.Heading); veh.PlaceOnGround(); gamePed.Task.WarpIntoVehicle(veh, VehicleSeat.Driver); UI.ShowSubtitle("~b~" + modelName + " Spawned~b~", 2000); } else { UI.ShowSubtitle("~r~" + modelName + " Is Not A Vehicle~r~", 2000); } } }; } void SpawnVehicle() { List<dynamic> listOfVehicles = new List<dynamic>(); VehicleHash[] allVehicleHashes = (VehicleHash[])Enum.GetValues(typeof(VehicleHash)); for (int i = 0; i < allVehicleHashes.Length; i++) { listOfVehicles.Add(allVehicleHashes[i]); } UIMenuListItem list = new UIMenuListItem("Vehicles: ", listOfVehicles, 0); vehicleMenu.AddItem(list); UIMenuItem getVehicle = new UIMenuItem("Spawn Vehicle"); vehicleMenu.AddItem(getVehicle); vehicleMenu.OnItemSelect += (sender, item, index) => { if (item == getVehicle) { int listIndex = list.Index; VehicleHash hash = allVehicleHashes[listIndex]; Vehicle veh = World.CreateVehicle(hash, gamePed.Position, gamePed.Heading); veh.PlaceOnGround(); gamePed.Task.WarpIntoVehicle(veh, VehicleSeat.Driver); UI.ShowSubtitle("~b~" + hash + " Spawned~b~", 2000); } }; } void onTick(object sender, EventArgs e) { if (modMenuPool != null) modMenuPool.ProcessMenus(); if(neverWantedlevelOn) { Game.Player.WantedLevel = 0; } } void OnKeyDown(object sender, KeyEventArgs e) { if(e.KeyCode == Keys.F10 && !modMenuPool.IsAnyMenuOpen()) { mainMenu.Visible = !mainMenu.Visible; } } }
-
RE: [C#][NativeUI] How to create a mod menu using NativeUI(Part 3)
When i enable the God Mode option in my menu it also enables Never Wanted. Any idea how to fix this?
-
RE: Map not loading???
@AHK1221 Never overclocked before
-
RE: Map not loading???
@krashadam Thanks for the response
i literally have all these checked, it doesn't even matter if i have mods installed or not since the map/textures still do not load in
-
Map not loading???
So lately i've been getting back into gta on my pc especially because mods have now returned. For some reason though, my pc isn't running it as well as i believe it should be. Game Debate say i can run the game between medium to high but even on low settings i am still having issues.
My specs:
AMD A10-7700k
GTX 670 DirectCU || mini
8 gb ramIf i turn the graphics up then i get quite a bit of frame drops but they do go away if i turn the graphics down. However, the one thing bothering me most is that the map/certain textures don't load in properly. I have looked around for the fix but i haven't found anything.
Any ideas?