debug.getupvalue

From GMod Wiki

Jump to: navigation, search
Function
Syntax debug.getupvalue( Function function, Number up )
Where is this used?
Description:
This function returns the name and the value of the upvalue with index up of the Function function. The function returns Nil if there is no upvalue with the given index.
Returns: String name, Var value
Part of Library: Debug
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Debug.getupvalue]Debug.getupvalue [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A
Stub.pngThis article is a stub.
You can help the GMod Wiki by expanding it.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox