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]
return rfunc:InvokeClient(plyr,...)
end
The error is “Invalid table key type used” at the return line. There is no table there which really confuses me.
… it will fail to pass. The numeric indices must be in numeric order, starting from 1. I’m not sure how often it is encountered by others but it was annoying enough to warrant me typing this out.