Also curious how this would look like in GS3.
Weapon: Example
PHP Code:
function onActionServerSide() {
if (params[0] == "hello") {
player.triggerclient("weapon", this.name, "goodbye");
}
}
//#CLIENTSIDE
function onCreated() {
triggerserver("gui", this.name, "hello");
}
function onActionClientSide() {
if (params[0] == "goodbye") {
player.chat = "*fistbump*";
}
}
Also if there's no 'with' (I still think there should be) how would this work out:
Weapon: GUIExample
PHP Code:
//#CLIENTSIDE
function onCreated() {
new GuiWindowCtrl("Example") {
profile = GuiBlueButtonProfile;
x = y = width = height = 100;
new GuiButtonCtrl("ButtonExample") {
profile = GuiBlueButtonProfile;
x = y = width = height = 10;
}
new GuiButtonCtrl("ButtonExample2") {
profile = GuiBlueButtonProfile;
x = y = width = height = 30;
}
}
}