You don't need any clientside code here, just use onActionDoubleMouse, which is sent by the client without you doing anything.
What if my account was "Stef"? I could lock gralats in Stefan's house.
Once again, stop using 0 and 1 as booleans. Use true and false instead. It's much clearer for anyone reading the code.
I'm almost certain that setshape should have '1' as its first parameter (at least
according to the wiki—but I've never seen it used any other way).
Where is onUpdateGani being triggered from?
Indent code properly and use whitespace consistently. It's unacceptable not to.