Post: Stealth Button in menu
09-08-2017, 09:23 PM #1
AerialOnDex
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU, I'm just wondering how you can add a button in the menu to a stealth code so like you can turn stealth on and off where people can and can't see the menu in the killcams
09-09-2017, 11:30 AM #2
Just toggle the way you stealth your menu
09-10-2017, 12:51 AM #3
AerialOnDex
Bounty hunter
Originally posted by Richi987 View Post
Just toggle the way you stealth your menu


Wdym?
09-10-2017, 09:02 AM #4
    toggleStealth()
{
if(!isDefined(self.StealthMenu))
{
self.StealthMenu = true;
self.YOURMENUHUD.archived = false;
self iPrintln("Stealth Menu [^2ON^7]");
}
else
{
self.StealthMenu = undefined;
self.YOURMENUHUD.archived = true;
self iPrintln("Stealth Menu [^1OFF^7]");
}
}
09-10-2017, 02:43 PM #5
Patrick
League Champion
Originally posted by Richi987 View Post
    toggleStealth()
{
if(!isDefined(self.StealthMenu))
{
self.StealthMenu = true;
self.YOURMENUHUD.archived = false;
self iPrintln("Stealth Menu [^2ON^7]");
}
else
{
self.StealthMenu = undefined;
self.YOURMENUHUD.archived = true;
self iPrintln("Stealth Menu [^1OFF^7]");
}
}


That's stupid, just make a if statement inside of all your drawing functions and once the toggle is activated redraw the menu
09-10-2017, 03:38 PM #6
It was just an example for him

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo