This is what you're looking for:
http://wiki.graal.net/index.php/Crea...g_GUI_Profiles
Creating a Profile Example:
PHP Code:
//#CLIENTSIDE
function onCreated() {
// Profiles only need to be created once.
// Preferably in it's own -Profiles weapon.
// Make sure -Profiles is before other weapons that might use these profiles.
// (serveroptions: weaponorder=-Profiles,-System)
new GuiControlProfile("ZodiacButtonProfile") {
bitmap = "zodiacguibutton.gif";
transparency = 1;
opaque = 1;
textoffset = "0 -10";
align = "center";
fontcolor = "255 255 255";
fonttype = "Arial";
fontsize = 12;
fontstyle = "cb";
fillcolor = fillcolorhl = fillcolorna = "44 46 44";
}
}
Use Own Profile Example:
PHP Code:
new GuiButtonCtrl("Example") {
x = y = width = height = 100;
profile = ZodiacButtonProfile;
useownprofile = true;
profile.fontcolor = "255 0 0"; // Changes Font Color Red
}