Garry's Mod Wiki

debug.upvalueid

  number debug.upvalueid( function func, number index )

Description

This function was removed due to security concerns.

Returns an unique identifier for the upvalue indexed from func

Arguments

1 function func
The function to index the upvalue from
2 number index
The index from func

Returns

1 number
A unique identifier

Example

Small example showing the type of the returned data.

print(type(debug.upvalueid(hook.Add, 1)))
Output: userdata