CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Menu Locking
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="[nobody@CCM:]" data-source="post: 5801" data-attributes="member: 33"><p>so all you do is make a Var to check if the menu is locked or unlocked lets begin.</p><p></p><p>add this into your MonitorButtons (Maybe called something different):</p><p>self.menuLocked = false;</p><p></p><p>Once you have done that you need to do a check on your open button monitoring, Example:</p><p>if(self actionSlotOneButtonPressed() && !self.menu.open && !self.menuLocked)</p><p></p><p>Once you have done both of them you can start working on the lock menu and unlockMenu:</p><p>[code]LockMenu()</p><p>{</p><p> //self _closeMenu();</p><p> //wait .3;</p><p> self.menuLocked = true;</p><p> self iprintln("^1Menu Now Locked");</p><p>}</p><p>UnlockMenu()</p><p>{</p><p> self.menuLocked = false;</p><p> self iprintln("^2Menu Now Unlocked");</p><p>}[/code]</p><p></p><p>NOTE: I recommend running your close menu when you lock your menu so they wont be any issues down the line, also take note the text above is all examples and may not work so you will need to make it suite the base you are using.</p><p></p><p>~Extinct</p></blockquote><p></p>
[QUOTE="[nobody@CCM:], post: 5801, member: 33"] so all you do is make a Var to check if the menu is locked or unlocked lets begin. add this into your MonitorButtons (Maybe called something different): self.menuLocked = false; Once you have done that you need to do a check on your open button monitoring, Example: if(self actionSlotOneButtonPressed() && !self.menu.open && !self.menuLocked) Once you have done both of them you can start working on the lock menu and unlockMenu: [code]LockMenu() { //self _closeMenu(); //wait .3; self.menuLocked = true; self iprintln("^1Menu Now Locked"); } UnlockMenu() { self.menuLocked = false; self iprintln("^2Menu Now Unlocked"); }[/code] NOTE: I recommend running your close menu when you lock your menu so they wont be any issues down the line, also take note the text above is all examples and may not work so you will need to make it suite the base you are using. ~Extinct [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Menu Locking
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top