debug.getlocal
Example
Gets all the local variables of the current thread and stores them in a table.
Output: varA = 1
varB = nil
locals = table: 0xa78f5ab2
i = 4
Example
Prints the parameter names for hook.Add.
Output: event_name
name
func