freezing dosent work

Hi,

Im using this code

playertable = player.GetAll();
for k, v in pairs(playertable) do
if(v:Team() == 2) then
print(“FROZEN?”);
v:Freeze(true);
end;
end

However it does absoluetly nothing, frozen gets printed fine. But the freeze command dosent appear to do anything at all.

Any help?

There doesnt seem to exist a freeze command in the gmod lua wiki

http://wiki.garrysmod.com/?title=Player.Freeze

The method works fine for me, are you running it serverside?

Yeah its being run serverside.

[editline]27th November 2011[/editline]

Ah worked out the problem was caused by deriving from sandbox.