Are you attempting to do Blah64's suggestion in an onCreated on the serverside?
He put findplayer(player.account), which is redundant for "player." Either way, if you tried that in the onCreated, where there is no player scope, that would explain why it wouldn't work.
Doing:
PHP Code:
function onCreated() {
temp.t = findPlayer("Restraint").clientr.getDynamicVarNames();
echo(t.size());
}
in a serversided script, I got the echo "90" -- seems right to me.