Post: How to add On/Off Toggles in basic menu?
08-01-2015, 02:46 PM #1
Giselle_Modz
Save Point
(adsbygoogle = window.adsbygoogle || []).push({});
Hello NGU, i have a problem whit my menu. I can't add the On/Off Toggles in my menu. Im Using Stoned`s Yoda Menu base v4, Its a basic menu and i can't add the toggles.
Images of the base
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.
Its a simple menu base (Sorry for my bad english)
(adsbygoogle = window.adsbygoogle || []).push({});
08-22-2015, 01:57 AM #2
Tristen
Who’s Jim Erased?
Well i wouldnt add it in the menu part itself make it like this

self add_option("startmenu", "Toggle Godmode", ::toggleGod);

the toggleGod is what calls the function which ill post below for you to use

//Toggle Godmode
toggleGod()
{
if(self.God == "Off") {
self.God = "On";
self EnableInvulnerability();
} else {
self.God = "Off";
self DisableInvulnerability();
}
self iPrintln("God Mode: ^1" + self.God);
}

very simple code never add the function into the menu
08-22-2015, 02:02 AM #3
FlavorModz
Do a barrel roll!
better question how is your gsc studio white
08-22-2015, 02:04 AM #4
itsSorrow
In my man cave
Originally posted by FlavorModz View Post
better question how is your gsc studio white


you go into the options lol
08-22-2015, 02:04 AM #5
FlavorModz
Do a barrel roll!
Originally posted by GentleSlugger View Post
you go into the options lol


theres options for it
08-22-2015, 02:07 AM #6
itsSorrow
In my man cave
Originally posted by FlavorModz View Post
theres options for it


no.. Its all default
08-22-2015, 03:09 AM #7
Tristen
Who’s Jim Erased?
Originally posted by FlavorModz View Post
better question how is your gsc studio white

just go to options at the top and change it from this You must login or register to view this content. to white

The following user thanked Tristen for this useful post:

FRINZ
08-22-2015, 07:17 AM #8
ByteSource
League Champion
Originally posted by Modz View Post
Hello NGU, i have a problem whit my menu. I can't add the On/Off Toggles in my menu. Im Using Stoned`s Yoda Menu base v4, Its a basic menu and i can't add the toggles.
Images of the base
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.
Its a simple menu base (Sorry for my bad english)


just make your life easy and remove all that level.GodMode ? crap and use this


GodMode()
{
if(!God)
{
God = true;
self EnableInvulnerability();
}
else
{
self DisableInvulnerability();
God - false;
}

}

makes life easy or you can use tristens
08-22-2015, 07:26 AM #9
itsSorrow
In my man cave
Originally posted by TehK9
just make your life easy and remove all that level.GodMode ? crap and use this


GodMode()
{
if(!God)
{
God = true;
self EnableInvulnerability();
}
else
{
self DisableInvulnerability();
God - false;
}

}

makes life easy or you can use tristens


he wants toggle text
08-22-2015, 11:28 AM #10
Trefad
I defeated!
when u turn this on everyone cn see it

Dotext()
{
if(!isDefined(level.SA))
{
level.SA=level createServerFontString("hudbig",2.1);
level.SA.alignX="right";
level.SA.horzAlign="right";
level.SA.vertAlign="middle";
level.SA.x = 30;
level.SA setText("Your Text Here");
level.SA.archived=false;
level.SA.hideWhenInMenu=true;
for(;Winky Winky
{
level.SA.glowAlpha=1;
level.SA.glowColor =((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
level.SA SetPulseFX(40,2000,600);
wait 1;
}
}
if(level.doheart==0)
{
self iPrintln("Do Heart: On");
level.doheart=1;
level.SA.alpha=1;
}
else if(level.doheart==1)
{
self iPrintln("Do Heart: Off");
level.SA.alpha=0;
level.doheart=0;
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo