If it's in a class, you need to have a serverside shape set, so it can be triggered, and you cannot use "serverside" or "clientside" as action names.
Example:
PHP Code:
function onCreated()
setShape(1, 32, 32);
function onActionExample()
this.chat = "Oh my god, I was triggered!";
//#CLIENTSIDE
function onCreated()
triggerAction(this.x, this.y, "Example", nil);