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

Page Links


Special Pages


Wikis

?

Render Time: 33ms

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