Garry's Mod Wiki

debug.getfenv

  table debug.getfenv( table object )

Description

We advise against using this. It may be changed or removed in a future update.

Returns the environment of the passed object. This can be set with debug.setfenv

Arguments

1 table object
Object to get environment of

Returns

1 table
Environment