Post: menu lock
06-02-2017, 04:38 PM #1
Tristen
Who’s Jim Erased?
(adsbygoogle = window.adsbygoogle || []).push({}); i was wondering if any one had an idea to make it where when i press a button while menu is closed it locks the menu until i press the button again to unlock it, thank you
06-02-2017, 05:25 PM #2
Patrick
League Champion
Originally posted by Tristen View Post
i was wondering if any one had an idea to make it where when i press a button while menu is closed it locks the menu until i press the button again to unlock it, thank you


All you need todo is create a var then check if the var is defined or not in your menuhandler so like this
self.lockMenu = true;//LOCKS MENU
self.lockMenu = undefined;//UNLOCKS MENU

add this to your menu handler
if(!isDefined(self.lockMenu))
06-02-2017, 05:27 PM #3
MozeyModz
I am error
Patrick L33T Haxor knows meni tew muchDave
06-02-2017, 06:23 PM #4
Patrick
League Champion
Originally posted by MozeyModz View Post
Patrick L33T Haxor knows meni tew muchDave


oRly?

The following user thanked Patrick for this useful post:

MozeyModz

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo