Garry's Mod Wiki

getfenv

table getfenv( function location = 1 )

Description

Returns the environment table of either the stack level or the function specified.

Arguments

1 function location = 1
The object to get the enviroment from. Can also be a number that specifies the function at that stack level: Level 1 is the function calling getfenv.

Returns

1 table
The environment.

Page Links


Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 6