Can't use "SetNWBool" and "GetNWBool"

Hello , when i try to use “SetNWBool” and “GetNWBool” it doesnt works

The code

Serverside :

[lua]
function cloak()

for k,v in pairs(player.GetAll()) do
if v:GetNWBool(“Cloak”) == true then
v:SetNWBool(“Cloaked”,true)
v:SetMaterial(“effects/strider_bulge_dudv”)
v:SetWalkSpeed(250)
v:SetRunSpeed(500)
v:DrawShadow(false)

v:DrawWorldModel(false)
v:SetNoTarget(true)
v:SetJumpPower(200)

end
end
end
[/lua]

ClientSide :

[lua]

for k,v in pairs(player.GetAll()) do
if ( slots[selected] ) and ( slots[selected].name ) == “Cloak” then
v:SetNWBool(“Strenght”,false)
v:SetNWBool(“Armor”,false)
v:SetNWBool(“Speed”,false)
v:SetNWBool(“Cloak”,true)
RunConsoleCommand( “play”, “suit/cloak.mp3” )

end
end

[/lua]

i tried to remplace
[lua]
if v:GetNWBool(“Cloak”) == true then
[/lua]

to

[lua]
if (v:GetNWBool(“Cloaked”,true)) then
[/lua]

You cannot set networked variables clientside, it is just a usermessage. If you want to network your variable, you can use datastream (which is removed in GM13) or console commands.

“Cloak” and “Cloaked” isn’t the same word.

[editline]15th February 2012[/editline]

By that i mean try this:

[lua]if( v:GetNWBool(“Cloaked”) == true )then[/lua]

Ok thanks