Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...