Post: How to make a cool hud for current mod (x/25)
01-23-2012, 03:38 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Alright this is pretty simple

Add this where the HUD for menu is created:

    
self.cmtext = createFontString("default", "1.8");


basically make this when your menu updates, or wherever you init your menu.

add this:
    
self thread countMods();


here is the actually snippet
    
countMods()
{
self endon("death");
self endon("disconnect");
for(i = self.myCurz; i < self.menText.sizeWinky Winky
{
self.cmtext setText("Mod :" + self.myCurz[i] + "/" + self.menText.size);
}
}


now you have to notice some things.
self.cmtext = the current mod text, leave that alone.
myCurz is the cursor option which is hovered over. or the option going to be called. Look in the menu base and you find this out. usually named mCurs, or mOpt

self.menText.size is the max amount of your menu, it should also be called something different. mText, or iText etc.. this is your actuall names of your mods in your menu.

use this however, and thanks or reading this tut! :y:
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users groaned at Jakes625 for this awful post:

247Yamato, Taylor, zxz0O0
01-24-2012, 05:41 PM #11
Originally posted by IVI40A3Fusionz View Post
Before the 'overflow fix' after 24 strings my game would overflow :\.

---------- Post added at 05:28 PM ---------- Previous post was at 05:27 PM ----------



Everytime you change the color using ^(THEN A NUMBER) or change the text it creates a new text string.


you can have more than 24 strings in a game. its like 100 or somthing. and you can have as much text in there as you want it will not efect the string count
01-24-2012, 05:46 PM #12
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by IELIITEMODZX View Post
you can have more than 24 strings in a game. its like 100 or somthing. and you can have as much text in there as you want it will not efect the string count


I always got told that changing the text color and/or text created a new text string, and i'm just going from personal past experience :p.
01-24-2012, 06:06 PM #13
Originally posted by IVI40A3Fusionz View Post
I always got told that changing the text color and/or text created a new text string, and i'm just going from personal past experience :p.
if you do this "admin menu" and then somthing like this "^2admin menu" thats a new string but you can do .color because your not adding a new letter or number to the string ""
01-24-2012, 06:16 PM #14
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by IELIITEMODZX View Post
if you do this "admin menu" and then somthing like this "^2admin menu" thats a new string but you can do .color because your not adding a new letter or number to the string ""


That's exactly what i said lol.

Proof: You must login or register to view this content.
01-24-2012, 06:30 PM #15
Originally posted by IVI40A3Fusionz View Post
That's exactly what i said lol.

Proof: You must login or register to view this content.
yeah so you can have more than 24 :p :wub:
01-24-2012, 06:32 PM #16
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by IELIITEMODZX View Post
yeah so you can have more than 24 :p :wub:


But when i use more than 24 options before the 'overflow fix' it would overflow :p <3 much love for you though lol.
01-24-2012, 06:36 PM #17
Originally posted by IVI40A3Fusionz View Post
But when i use more than 24 options before the 'overflow fix' it would overflow :p <3 much love for you though lol.


thats ****ed up lolz :/
01-24-2012, 06:43 PM #18
Karoolus
I'm the W@W Menu Guy !
Originally posted by IELIITEMODZX View Post
you can have more than 24 strings in a game. its like 100 or somthing. and you can have as much text in there as you want it will not efect the string count


yes, the string can contain as much text as you want it to have, but if it exceeds a certain amount of characters, it simply won't be displayed on the screen.. that's what happened to the player menu in my menu base.. in a full lobby there's simply too many characters to show (if you use /n to get all the names to show up in 1 string)

Originally posted by IVI40A3Fusionz View Post
I always got told that changing the text color and/or text created a new text string, and i'm just going from personal past experience :p.


correct
01-24-2012, 06:48 PM #19
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Karoolus View Post
yes, the string can contain as much text as you want it to have, but if it exceeds a certain amount of characters, it simply won't be displayed on the screen.. that's what happened to the player menu in my menu base.. in a full lobby there's simply too many characters to show (if you use /n to get all the names to show up in 1 string)



correct


And just because people are more experienced than me they say i'm wrong :(.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo