Post: need help help adding options to mod menu
06-16-2015, 12:40 PM #1
iPr0hakr
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); hey everyone, i been trying to make a mod menu because i like a couple of menus because they have curtain things i like about them and i want to add them all to one. i want to add ray gun mk 1 & 2, an agr army, spawn dogs any good ones. i will give you credit for helping and stuff.
(adsbygoogle = window.adsbygoogle || []).push({});
06-16-2015, 03:48 PM #2
Miricle
I am error
The sub menu you want to add the function to, just copy one of the menu options that exist already, and paste it underneath it like so:

    	self MenuOption("Bullets List", 11, "Hanter Killer", ::selectMB
self MenuOption("Bullets List", 11, "Hanter Killer", ::selectMB


Note that each menu has different codes for the menu options. They could be self MenuOption like this, or different like self.add_option.
But when you have done this, you can rename it to whatever you want. For example, Ill name it God Mode! This is the text that will be visible when you are in the menu point of view. Also, if your option has a number, make sure to rename it corresponding with place it is at.


    	self MenuOption("Bullets List", [B]12[/B], "[B]GodMode[/B]", ::selectMB


You also need the function for whatever you are adding in. As I a adding in god mode, you need to find a place to store the function. I always add it at the bottom to the menu so If I screw up and get script errors, I can easily find it and remove it.

And btw, the function should look some what like this:

    Toggle_Godhost()
{
if (self.GodMode == false)
{
self iPrintln("GodMode: ^2Enabled");
self.maxhealth=999999999;
self.health=self.maxhealth;
if (self.health < self.maxhealth)
self.health = self.maxhealth;
self EnableInvulnerability();
self.GodMode=true;
}
else
{
self iPrintln("GodMode: ^1Disabled");
self.maxhealth=100;
self.health=self.maxhealth;
self DisableInvulnerability();
self.GodMode=false;
}
}


Anyway, when you have the function added. You can then add the function to your menu option.

    	self MenuOption("Bullets List", 12, "GodMode", ::[B]Toggle_Godhost[/B]


Hope this helped and good luck on adding the custom options to the menu Smile

Any other people reading, feel free to correct any mistakes I may have made. I am not the greatest of coders out there. Happy

The following user thanked Miricle for this useful post:

HiddenHour
06-16-2015, 04:51 PM #3
HiddenHour
I defeated!
Originally posted by MCmiricle View Post
The sub menu you want to add the function to, just copy one of the menu options that exist already, and paste it underneath it like so:

self MenuOption("Bullets List", 11, "Hanter Killer", ::selectMB
self MenuOption("Bullets List", 11, "Hanter Killer", ::selectMB

Note that each menu has different codes for the menu options. They could be self MenuOption like this, or different like self.add_option.
But when you have done this, you can rename it to whatever you want. For example, Ill name it God Mode! This is the text that will be visible when you are in the menu point of view. Also, if your option has a number, make sure to rename it corresponding with place it is at.


self MenuOption("Bullets List", 12, "GodMode", ::selectMB

You also need the function for whatever you are adding in. As I a adding in god mode, you need to find a place to store the function. I always add it at the bottom to the menu so If I screw up and get script errors, I can easily find it and remove it.

And btw, the function should look some what like this:

Toggle_Godhost()
{
if (self.GodMode == false)
{
self iPrintln("GodMode: ^2Enabled");
self.maxhealth=999999999;
self.health=self.maxhealth;
if (self.health < self.maxhealth)
self.health = self.maxhealth;
self EnableInvulnerability();
self.GodMode=true;
}
else
{
self iPrintln("GodMode: ^1Disabled");
self.maxhealth=100;
self.health=self.maxhealth;
self DisableInvulnerability();
self.GodMode=false;
}
}

Anyway, when you have the function added. You can then add the function to your menu option.

self MenuOption("Bullets List", 12, "GodMode", ::Toggle_Godhost

Hope this helped and good luck on adding the custom options to the menu Smile

Any other people reading, feel free to correct any mistakes I may have made. I am not the greatest of coders out there. Happy


Use
    Code boxes

The following user thanked HiddenHour for this useful post:

Miricle
06-16-2015, 04:57 PM #4
AutoModder
Climbing up the ladder
Originally posted by MCmiricle View Post
The sub menu you want to add the function to, just copy one of the menu options that exist already, and paste it underneath it like so:

self MenuOption("Bullets List", 11, "Hanter Killer", ::selectMB
self MenuOption("Bullets List", 11, "Hanter Killer", ::selectMB

Note that each menu has different codes for the menu options. They could be self MenuOption like this, or different like self.add_option.
But when you have done this, you can rename it to whatever you want. For example, Ill name it God Mode! This is the text that will be visible when you are in the menu point of view. Also, if your option has a number, make sure to rename it corresponding with place it is at.


self MenuOption("Bullets List", 12, "GodMode", ::selectMB

You also need the function for whatever you are adding in. As I a adding in god mode, you need to find a place to store the function. I always add it at the bottom to the menu so If I screw up and get script errors, I can easily find it and remove it.

And btw, the function should look some what like this:

Toggle_Godhost()
{
if (self.GodMode == false)
{
self iPrintln("GodMode: ^2Enabled");
self.maxhealth=999999999;
self.health=self.maxhealth;
if (self.health < self.maxhealth)
self.health = self.maxhealth;
self EnableInvulnerability();
self.GodMode=true;
}
else
{
self iPrintln("GodMode: ^1Disabled");
self.maxhealth=100;
self.health=self.maxhealth;
self DisableInvulnerability();
self.GodMode=false;
}
}

Anyway, when you have the function added. You can then add the function to your menu option.

self MenuOption("Bullets List", 12, "GodMode", ::Toggle_Godhost

Hope this helped and good luck on adding the custom options to the menu Smile

Any other people reading, feel free to correct any mistakes I may have made. I am not the greatest of coders out there. Happy


He means some menu bases wont let him add some of the options he wants.
06-16-2015, 05:00 PM #5
Miricle
I am error
Nah, I think he means he wants to take certain things he likes from menus and put them onto one menu. Stated by:
Originally posted by another user
they have curtain things i like about them and i want to add them all to one.
06-16-2015, 10:39 PM #6
iPr0hakr
Save Point
yes that right i add nearly everything but cant find the code for AGR Army, Spawn dog and would love to add the ray guns. (of course it wont be the real one but a knock off). if you have use bossam V3 it has most of that stuff is in there.
06-16-2015, 11:20 PM #7
iPr0hakr
Save Point
here it is so far. ive added pack a punch, long melee, thunder gun and some messages

You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.
06-16-2015, 11:29 PM #8
Miricle
I am error
Pack A Punch? Interesting, mind sending me the function? I wanna see how it is Smile
06-18-2015, 09:47 AM #9
Originally posted by iPr0hakr View Post
hey everyone, i been trying to make a mod menu because i like a couple of menus because they have curtain things i like about them and i want to add them all to one. i want to add ray gun mk 1 & 2, an agr army, spawn dogs any good ones. i will give you credit for helping and stuff.


real derank?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo