Ulx freeze player with +attack2

Hello, is there anyone there can help me. I’m trying to put in a code to ulx/modules/sh/util.lua when right clicking it should freeze an player automaticly but i can’t get it work:


hook.Add("OnPhysgunFreeze", "RightClickFreeze", function(ent, ply)
	local acces, tag = ULib.ucl.query( ply, "ulx physgunplayer" )
		ent:SetMoveType( MOVETYPE_NONE )
		return true
		else
		return false
			end
		end
	end
end)

Please tell me this is a troll

No it’s just a skid who leaks scripts and now apparently wants help.

Go ahead and rate me, but you know it’s true.

http://coderhire.com/users/view/995