Post: delete
10-28-2015, 11:44 PM #1
KrazyKandy
I am error
(adsbygoogle = window.adsbygoogle || []).push({}); - Delete -
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2015, 04:24 AM #11
KrazyKandy
I am error
Originally posted by TheHiddenHour View Post
Something like
    backroundBlue()
{
self.menu.background fadeOverTime(0);
self.menu.background.color = (0, 0, 1);
}


Call it like and other function in your menu. There's easier and more efficient ways of doing it but I'll let you learn how it works.


I'll give it a shot
10-29-2015, 04:29 AM #12
HiddenHour
I defeated!
Originally posted by KrazyKandy View Post
I'll give it a shot


Hit me up if you need anything else.
10-29-2015, 04:36 AM #13
I have it like this:
Hud:
    
StoreShaders()
{
self.menu.background = self drawShader("white", 0, -50, 250, 500, (0, 0, 0), 0, 0);
self.menu.scroller = self drawShader("em_bg_flag_brazil", 0, -500, 250, 17, (1, 1, 1), 255, 1);
}


Put this wherever u want:
    
//Set Background Color
setBackgroundColor(color)
{
self.menu.background FadeOverTime(0.2);
self.menu.background.color = color;
}

//Set Line Color
setLineColor(color)
{
self.menu.scroller FadeOverTime(0.2);
self.menu.scroller.color = color;
}


Ex:
    

self add_menu("Custom_sub", "Main Menu", "Customization", "Verified");
self add_option("Custom_sub", "Lines", ::submenu, "Lines_sub", "Lines");
self add_menu("Lines_sub", "Custom_sub", "Lines", "Verified");
self add_option("Lines_sub", "Default", ::setLineColor, (1, 1, 1));
self add_option("Lines_sub", "Black", ::setLineColor, (0, 0, 0));
self add_option("Lines_sub", "Blue", ::setLineColor, (0, 0, 1));
self add_option("Lines_sub", "Orange", ::setLineColor, (1, 0.502, 0));
self add_option("Lines_sub", "Red", ::setLineColor, (1, 0, 0));
self add_option("Lines_sub", "Purple", ::setLineColor, (0.502, 0, 0.502));
self add_option("Lines_sub", "Green", ::setLineColor, (0, 1, 0));
self add_option("Lines_sub", "Cyan", ::setLineColor, (0, 0.588, 0.98Cool Man (aka Tustin));
self add_option("Custom_sub", "Background", ::submenu, "Backg_sub", "Background");
self add_menu("Backg_sub", "Custom_sub", "Background", "Verified");
self add_option("Backg_sub", "Black", ::setBackgroundColor, (0, 0, 0));
self add_option("Backg_sub", "Blue", ::setBackgroundColor, (0, 0, 1));
self add_option("Backg_sub", "Orange", ::setBackgroundColor, (1, 0.502, 0));
self add_option("Backg_sub", "Red", ::setBackgroundColor, (1, 0, 0));
self add_option("Backg_sub", "Purple", ::setBackgroundColor, (0.502, 0, 0.502));
self add_option("Backg_sub", "Green", ::setBackgroundColor, (0, 1, 0));
self add_option("Backg_sub", "Cyan", ::setBackgroundColor, (0, 0.588, 0.98Cool Man (aka Tustin));
10-29-2015, 04:57 AM #14
KrazyKandy
I am error
Originally posted by DrifterTheHomie View Post
I have it like this:
Hud:
    
StoreShaders()
{
self.menu.background = self drawShader("white", 0, -50, 250, 500, (0, 0, 0), 0, 0);
self.menu.scroller = self drawShader("em_bg_flag_brazil", 0, -500, 250, 17, (1, 1, 1), 255, 1);
}


Put this wherever u want:
    
//Set Background Color
setBackgroundColor(color)
{
self.menu.background FadeOverTime(0.2);
self.menu.background.color = color;
}

//Set Line Color
setLineColor(color)
{
self.menu.scroller FadeOverTime(0.2);
self.menu.scroller.color = color;
}


Ex:
    

self add_menu("Custom_sub", "Main Menu", "Customization", "Verified");
self add_option("Custom_sub", "Lines", ::submenu, "Lines_sub", "Lines");
self add_menu("Lines_sub", "Custom_sub", "Lines", "Verified");
self add_option("Lines_sub", "Default", ::setLineColor, (1, 1, 1));
self add_option("Lines_sub", "Black", ::setLineColor, (0, 0, 0));
self add_option("Lines_sub", "Blue", ::setLineColor, (0, 0, 1));
self add_option("Lines_sub", "Orange", ::setLineColor, (1, 0.502, 0));
self add_option("Lines_sub", "Red", ::setLineColor, (1, 0, 0));
self add_option("Lines_sub", "Purple", ::setLineColor, (0.502, 0, 0.502));
self add_option("Lines_sub", "Green", ::setLineColor, (0, 1, 0));
self add_option("Lines_sub", "Cyan", ::setLineColor, (0, 0.588, 0.98Cool Man (aka Tustin));
self add_option("Custom_sub", "Background", ::submenu, "Backg_sub", "Background");
self add_menu("Backg_sub", "Custom_sub", "Background", "Verified");
self add_option("Backg_sub", "Black", ::setBackgroundColor, (0, 0, 0));
self add_option("Backg_sub", "Blue", ::setBackgroundColor, (0, 0, 1));
self add_option("Backg_sub", "Orange", ::setBackgroundColor, (1, 0.502, 0));
self add_option("Backg_sub", "Red", ::setBackgroundColor, (1, 0, 0));
self add_option("Backg_sub", "Purple", ::setBackgroundColor, (0.502, 0, 0.502));
self add_option("Backg_sub", "Green", ::setBackgroundColor, (0, 1, 0));
self add_option("Backg_sub", "Cyan", ::setBackgroundColor, (0, 0.588, 0.98Cool Man (aka Tustin));



But will that work with my base...
10-29-2015, 05:16 AM #15
KrazyKandy
I am error
Originally posted by TheHiddenHour View Post
Hit me up if you need anything else.


This is mine...
    //hud
StoreShaders()
{
self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, (.2, 0, 0), 0, "menu_camo_mtx_dragon_32");
self.menu.scroller = self createRectangle("CENTER", "TOP", 320, -50, 1, 1, 1, (0, 0, 0), 0, "white");
self.menu.line = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 2, (0, 0, 0), 0, "white");
}



Originally posted by DrifterTheHomie View Post
I have it like this:
Hud:
    
StoreShaders()
{
self.menu.background = self drawShader("white", 0, -50, 250, 500, (0, 0, 0), 0, 0);
self.menu.scroller = self drawShader("em_bg_flag_brazil", 0, -500, 250, 17, (1, 1, 1), 255, 1);
}


Put this wherever u want:
    
//Set Background Color
setBackgroundColor(color)
{
self.menu.background FadeOverTime(0.2);
self.menu.background.color = color;
}

//Set Line Color
setLineColor(color)
{
self.menu.scroller FadeOverTime(0.2);
self.menu.scroller.color = color;
}


Ex:
    

self add_menu("Custom_sub", "Main Menu", "Customization", "Verified");
self add_option("Custom_sub", "Lines", ::submenu, "Lines_sub", "Lines");
self add_menu("Lines_sub", "Custom_sub", "Lines", "Verified");
self add_option("Lines_sub", "Default", ::setLineColor, (1, 1, 1));
self add_option("Lines_sub", "Black", ::setLineColor, (0, 0, 0));
self add_option("Lines_sub", "Blue", ::setLineColor, (0, 0, 1));
self add_option("Lines_sub", "Orange", ::setLineColor, (1, 0.502, 0));
self add_option("Lines_sub", "Red", ::setLineColor, (1, 0, 0));
self add_option("Lines_sub", "Purple", ::setLineColor, (0.502, 0, 0.502));
self add_option("Lines_sub", "Green", ::setLineColor, (0, 1, 0));
self add_option("Lines_sub", "Cyan", ::setLineColor, (0, 0.588, 0.98Cool Man (aka Tustin));
self add_option("Custom_sub", "Background", ::submenu, "Backg_sub", "Background");
self add_menu("Backg_sub", "Custom_sub", "Background", "Verified");
self add_option("Backg_sub", "Black", ::setBackgroundColor, (0, 0, 0));
self add_option("Backg_sub", "Blue", ::setBackgroundColor, (0, 0, 1));
self add_option("Backg_sub", "Orange", ::setBackgroundColor, (1, 0.502, 0));
self add_option("Backg_sub", "Red", ::setBackgroundColor, (1, 0, 0));
self add_option("Backg_sub", "Purple", ::setBackgroundColor, (0.502, 0, 0.502));
self add_option("Backg_sub", "Green", ::setBackgroundColor, (0, 1, 0));
self add_option("Backg_sub", "Cyan", ::setBackgroundColor, (0, 0.588, 0.98Cool Man (aka Tustin));


^^ I tried this but with my base its different so I just got a script error..
10-29-2015, 10:16 AM #16
-Numb
You talkin to me?
Originally posted by KrazyKandy View Post
I'm hoping this is my last question..
I'm using Sharks menu base, and I wanted to know
if it's possible to add Options to change the colors in the menu..

Example: Its Red default.. and I want to keep it like that,
but I want options so it will change, Green, Blue, Orange, Purple, etc..


I think the best way to change the theme color of your menu is to add a variable in every color you want to be changed
    self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, [B]self.MenuColor[/B], 0, "menu_camo_mtx_dragon_32");
self.menu.scroller = self createRectangle("CENTER", "TOP", 320, -50, 1, 1, 1, [B]self.MenuColor[/B], 0, "white");
self.menu.line = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 2, [B]self.MenuColor[/B], 0, "white");
}

Then you have self.MenuColor = (1,0,0); on the first spawned under onPlayerSpawned. Change (1,0,0) to the default color you want..

For the function to change the color I would have something like this
    ChangeMenuColor(color)
{
self.MenuColor = color;
}


Then you call it like ::ChangeMenuColor, (0,1,0));
10-29-2015, 09:08 PM #17
KrazyKandy
I am error
Originally posted by Numb View Post
I think the best way to change the theme color of your menu is to add a variable in every color you want to be changed
    self.menu.background = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 0, [B]self.MenuColor[/B], 0, "menu_camo_mtx_dragon_32");
self.menu.scroller = self createRectangle("CENTER", "TOP", 320, -50, 1, 1, 1, [B]self.MenuColor[/B], 0, "white");
self.menu.line = self createRectangle("CENTER", "CENTER", 320, -50, 1, 1, 2, [B]self.MenuColor[/B], 0, "white");
}

Then you have self.MenuColor = (1,0,0); on the first spawned under onPlayerSpawned. Change (1,0,0) to the default color you want..

For the function to change the color I would have something like this
    ChangeMenuColor(color)
{
self.MenuColor = color;
}


Then you call it like ::ChangeMenuColor, (0,1,0));



Thank you :yes:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo