debug.upvalueid

From Garry's Mod
Jump to: navigation, search
 debug.upvalueid( )

Contents

Description

This page has been nominated for deletion.
Reason for deletion: This function was removed due to security concerns.

Returns an unique identifier for the upvalue indexed from func

Arguments

function func

The function to index the upvalue from

Arguments

number index

The index from func

Returns

number

A unique identifier

Examples

Example

Small example showing the type of the returned data.

print(type(debug.upvalueid(hook.Add, 1)))

Output:

userdata
Personal tools
Navigation