maybe some wait 1; afther pressing closing key
Hi everyone,
I'm learning .gsc scripting for like a week now, and I was trying to make a sort of a mod menu, but..
everything goes fine untill it closes the menu, then it starts lagging like crazy.
I tried adding wait commands, but without succes.
any help?
maybe some wait 1; afther pressing closing key
Take it slow. dont just jump straight to making huge stuff. take it slow. and then start from the beginning and the basics, also maybe wait a longer time.
or maybe taking out a few commands // choices
Last edited by NzVii; 01-26-2011 at 08:47 AM.
I started off with using Elite mossy's etc.
after that I tried to make a quickscope lobby (with succes , and I even made a V2 in the last couple of days )
then I tried to figure out how to make menu's, looked into Elite Mossy's patch, but I thought it was too complicated xD
(I also looked at the GodlyModz patch for the menu)
But I just tried to make something of it, it's not like a real menu, but I'm pretty happy with it, but I need to get rid off the HUGE lagg
Do you want me to post my 'menu' code?
btw: thanks for your time
Post the closemenu code....
Ok, here's the close menu code
It's a very basic menu, not even options to choose from, but when you open the menu, you can like press for example 3 and than you toggle super jump or something.Code:exit( modMenu ) { self endon( "disconnect" ); self endon( "death" ); wait 2.5; self thread maps\mp\gametypes\_hud_message::HintMessage( "Press [{+reload}] To Close The Mod Menu" ); for(;;) { self waittill( "square" ); if( self.modMenuIsOpen == true ) { wait .5; self switchToWeapon( self.currentWeapon ); self takeWeapon( "briefcase_bomb_mp" ); self freezeControls( false ); wait 1; if( self.differentVision != true ) { self visionSetNakedForPlayer( "default", 5 ); } } wait .5; self.modMenuIsOpen = false; wait 1; } wait 1; }
I want to learn how to make a real menu too, tips?