Post: How to disable a function?
12-30-2010, 08:13 PM #1
Chrome Playa
Chrome Gaming Reloaded
(adsbygoogle = window.adsbygoogle || []).push({}); Ok so I have a function that toggles god mode when left on the d-pad is pressed:
    MonitorLeft(){
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("dpad_left","+actionslot 3");
for(;Winky Winky{
self waittill("dpad_left");
self thread maps\mp\moss\MossysFunctions :: toggleMakeGod();
}}


I am wondering how I can disable this function when the menu is open
I know I would use if( self.MenuIsOpen == true )
Any help would be appreciated. Thank you.
(adsbygoogle = window.adsbygoogle || []).push({});
12-30-2010, 08:51 PM #2
d7w7z
Bounty hunter
    MonitorLeft(){
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("dpad_left","+actionslot 3");
for(;Winky Winky{
self waittill("dpad_left");
if (self.MenuIsOpen == true){
self thread maps\mp\moss\MossysFunctions::toggleMakeGod(); }
}}

Now it wont toggle while the menu is open.Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo