All you do is make a text file and save it with a .gani extension. In the text file, it should look like this:
PHP Code:
SCRIPT
function onCreated()
{
doBlah();
}
SCRIPTEND
It is just like any other script, but it is clientside. There is no need to have //#CLIENTSIDE, as it is always clientside.
You also cant use triggerserver to trigger the GANI to perform serverside functions.