Post: Toggle Text [See Inside To Understand]
04-18-2015, 12:12 PM #1
TehMerkMods
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Okay so to start check the link below to even understand what i mean by "TOGGLE TEXT"
You must login or register to view this content.
You're probably wondering why use this? I Prefer this over Little print messages :P

Now I Know some smart ass will come along and say oh you can do it this way easier...
IDGAF this is my method in doing so.
Okay so let's start now you know what it looks like :P.
First head up to Init() and add the level code cause I'm using god mode I Used,
level.godmode = 1; (Makes Things Easier)

Where You're adding your option
You must login or register to view this content.
So as you can see I've used god mode for this tutorial :P okay add something like this into your menu
    level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]", ::godmode);


The Option To Call

You must login or register to view this content.
Okay as you can see we use the normal godmode code but we add level.godMode = !level.godMode; as a detection for the Toggle for the text then self.menu["ui"]["menuDisp"][0] setText(level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]");
If you can see it will change the text with this code :P

if you look below there is an example of how to use it full in a code.
    godmode()
{
if(level.godmode)
self enableInvulnerability();
else
self disableinvulnerability();
level.godMode = !level.godMode;
self.menu["ui"]["menuDisp"][0] setText(level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]");
}


I Have this under onPlayerSpawned For Obvious Reasons
    if(!level.godMode)
{
level.godMode = !level.godMode;
self thread godmode();
}


Now this method can differentiate via the menu base you are using.
The menu base i was using via this video was TheFallens Simple Menu Base As Far As I Know Anyways :P

This Method Isn't Something I Suggest If You're Just Starting GSC or Even If You're Just Leeching GSC.
Some People Find This Really Difficult But I've Been Asked How I Did It So Here!.

This tutorial was mainly for my friends who wanted to know how to do this.

If anyone has methods to doing this with other menu bases comment them and I'll add them in with credits (You must show it's working first it's cause I Don't fuck with the other bases anymore considering how good Fallens is)

Also Bigup FaZe Apex For The Publicity [He posted my menu on his channel aha]
Last edited by TehMerkMods ; 04-18-2015 at 04:11 PM.

The following 14 users say thank you to TehMerkMods for this useful post:

-Numb, ItzSparkBoii, AusTriMoDz, Exelo, HiddenHour, Im_YouViolateMe, iRnZ, itsSorrow, ksa_7ooo7, MCabCon, ModyHacker, Patrick, ProfoundModz, zapdos123
04-18-2015, 12:13 PM #2
TehMerkMods
I’m too L33T
Hate as much as you want <3
Love as much as you want <3
IDGAF
04-18-2015, 12:18 PM #3
nice post but it works with variables too Smile
04-18-2015, 12:19 PM #4
TehMerkMods
I’m too L33T
Originally posted by MCabCon View Post
nice post but it works with variables too Smile


Yeah aha This is just my method i guess :P
04-18-2015, 12:28 PM #5
ModyHacker
Gym leader
nice bro Happy
04-18-2015, 12:35 PM #6
Merk is a Beast <3
04-18-2015, 01:06 PM #7
EternalHabit
Former Staff
Originally posted by TehMerkMods View Post
Okay so to start check the link below to even understand what i mean by "TOGGLE TEXT"
You must login or register to view this content.
You're probably wondering why use this? I Prefer this over Little print messages :P

Now I Know some smart ass will come along and say oh you can do it this way easier...
IDGAF this is my method in doing so.
Okay so let's start now you know what it looks like :P.
First head up to Init() and add the level code cause I'm using god mode I Used,
level.godmode = 1; (Makes Things Easier)

Where You're adding your option
You must login or register to view this content.
So as you can see I've used god mode for this tutorial :P okay add something like this into your menu
    level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]", ::godmode);


The Option To Call

You must login or register to view this content.
Okay as you can see we use the normal godmode code but we add level.godMode = !level.godMode; as a detection for the Toggle for the text then self.menu["ui"]["menuDisp"][0] setText(level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]");
If you can see it will change the text with this code :P

if you look below there is an example of how to use it full in a code.
    godmode()
{
if(level.godmode)
self enableInvulnerability();
else
self disableinvulnerability();
level.godMode = !level.godMode;
self.menu["ui"]["menuDisp"][0] setText(level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]");
}


I Have this under onPlayerSpawned For Obvious Reasons
    if(!level.godMode)
{
level.godMode = !level.godMode;
self thread godmode();
}


Now this method can differentiate via the menu base you are using.
The menu base i was using via this video was TheFallens Simple Menu Base As Far As I Know Anyways :P

This Method Isn't Something I Suggest If You're Just Starting GSC or Even If You're Just Leeching GSC.
Some People Find This Really Difficult But I've Been Asked How I Did It So Here!.

This tutorial was mainly for my friends who wanted to know how to do this.

Also Bigup FaZe Apex For The Publicity [He posted my menu on his channel aha]


You might want to be careful using setText, could cause overflow issues. But nice job otherwise, i was looking into putting this into a menu also

The following user thanked EternalHabit for this useful post:

TehMerkMods
04-18-2015, 02:05 PM #8
Exelo
Banned
Nice man.
This is a great release I hope It won't be underrated. Smile
04-18-2015, 03:17 PM #9
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by TehMerkMods View Post
Okay so to start check the link below to even understand what i mean by "TOGGLE TEXT"
You must login or register to view this content.
You're probably wondering why use this? I Prefer this over Little print messages :P

Now I Know some smart ass will come along and say oh you can do it this way easier...
IDGAF this is my method in doing so.
Okay so let's start now you know what it looks like :P.
First head up to Init() and add the level code cause I'm using god mode I Used,
level.godmode = 1; (Makes Things Easier)

Where You're adding your option
You must login or register to view this content.
So as you can see I've used god mode for this tutorial :P okay add something like this into your menu
    level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]", ::godmode);


The Option To Call

You must login or register to view this content.
Okay as you can see we use the normal godmode code but we add level.godMode = !level.godMode; as a detection for the Toggle for the text then self.menu["ui"]["menuDisp"][0] setText(level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]");
If you can see it will change the text with this code :P

if you look below there is an example of how to use it full in a code.
    godmode()
{
if(level.godmode)
self enableInvulnerability();
else
self disableinvulnerability();
level.godMode = !level.godMode;
self.menu["ui"]["menuDisp"][0] setText(level.godMode ? "God Mode [^2ON^7]" : "God Mode [^1OFF^7]");
}


I Have this under onPlayerSpawned For Obvious Reasons
    if(!level.godMode)
{
level.godMode = !level.godMode;
self thread godmode();
}


Now this method can differentiate via the menu base you are using.
The menu base i was using via this video was TheFallens Simple Menu Base As Far As I Know Anyways :P

This Method Isn't Something I Suggest If You're Just Starting GSC or Even If You're Just Leeching GSC.
Some People Find This Really Difficult But I've Been Asked How I Did It So Here!.

This tutorial was mainly for my friends who wanted to know how to do this.

Also Bigup FaZe Apex For The Publicity [He posted my menu on his channel aha]


Thanks, I totally forgot about this lmao.
04-18-2015, 04:45 PM #10
ksa_7ooo7
Maggbot timeout!
thanks this would help me if i Know how to make GSC menu :(

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo