Garry's Mod Wiki

debug.upvalueid

number debug.upvalueid( function func, number index )

Description

<removed>This function was removed due to security concerns.</removed>

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

Page Links


Special Pages


Wikis

?

Render Time: 26ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 12