Okay well this answers my question about classes

Thanks.
As far as joining the functions to the GUI object, the idea I'm getting from you guys for equipping items (since I have a system for custom weapons, I trigger the server for custom weapons to be equipped/unequipped) or similar is to say:
-System/WepName1
PHP Code:
function onEquip( obj ) { //catchevent for "Equip" button onAction
obj.Run();
}
To trigger...
PHP Code:
//#CLIENTSIDE
public function Run() {
if ( this == "Inv_Button1" ) {
//trigger the server of -System/WepName1 to equip the player's item
//like normal
}
elseif ( this == "SomethingElse" ) {
//run the function appropriate for when this button is pressed
}
//etc.
}