The title says it all. I have a module called “Network” for communicating between the server and clients. It has a table called “listRFuncs” which is an array that contains RemoteFunctions. The way it works is through an “InvokeClient” method which grabs the RemoteFunction from the table and invokes the client.
“self” and “plyr” don’t require explanations. “fid” is the index of the RemoteFunction and the rest the arguments to send.
Network.InvokeClient = function(self,plyr,fid,...)
local rfunc = listRFuncs[fid]
The error is “Invalid table key type used” at the return line. There is no table there which really confuses me.