For example, concommand.Add.
This function, when listing the arguments shows a function argument that correctly shows the arguments passed to that function when using function(ply,cmd,args,argStr)
However, when using a function that is already defined, (eg, local function TestFunc(ply,cmd)) it won't show what arguments are being passed to TestFunc()
edit: this isn't even proper lua apparently.
you can't pass Func(ply) as the argument for concommand.Add, it has to be function(ply) Func(ply) end or else attempt to index local 'ply' (a nil value) (scoping, I'm assuming.)
For example, concommand.Add. This function, when listing the arguments shows a function argument that correctly shows the arguments passed to that function when using
function(ply,cmd,args,argStr)
However, when using a function that is already defined, (eg,local function TestFunc(ply,cmd)
) it won't show what arguments are being passed toTestFunc()
edit: this isn't even proper lua apparently. you can't pass
Func(ply)
as the argument for concommand.Add, it has to befunction(ply) Func(ply) end
or elseattempt to index local 'ply' (a nil value)
(scoping, I'm assuming.)