Quote:
Originally Posted by itsCyber
PHP Code:
//#CLIENTSIDE
function onCreated() {
new GuiBitmapCtrl("ChatButton") {
profile = GuiDefaultProfile;
bitmap = "gui-button.png";
height = 57;
width = 63;
x = 27;
y = 171;
}
function ChatButton.onMouseDown() {
}
}
|
(added PHP tags to have it easier to read)
In addition to Ziro his suggestions, you should watch out where you set your brackets and where your functions are set. You can't call a function within a function (in this case), so it should look like:
PHP Code:
//#CLIENTSIDE
function onCreated() {
new GuiBitmapCtrl("ChatButton") {
profile = GuiDefaultProfile;
bitmap = "gui-button.png";
height = 57;
width = 63;
x = 27;
y = 171;
}
}
function ChatButton.onMouseDown() {
//your actions
}