PHP Code:
function onActionStuff() {
echo("Somebody just trigered a test class! Odamn..");
}
function onCreated() {
setshape(1, 32, 32);
dontblock();
}
//#CLIENTSIDE
function onCreated() {
setshape(1, 32, 32);
dontblock();
triggeraction(this.x, this.y, "Stuff", NULL);
}
Don't use "ServerSide" as the action name, this wont work. I'm also not sure if the shape on the clientside is needed, I just always do it
Edit: Neo also has a valid point. If it's joined into a weapon, it should work.