Garry's Mod Wiki

debug.upvalueid

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

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 36
Generate Html 4
SaveChanges (1) 7
Render Body 0
Render Sidebar 10